<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How get app key in API 2? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-get-app-key-in-API-2/m-p/191437#M8369</link>
    <description>&lt;P&gt;In API 1, I could get the app key like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NSString *cachedAppKey = ...
MPOAuthCredentialConcreteStore *store = [[DBSession sharedSession] credentialStoreForUserId:nil];
if (cachedAppKey == nil || [cachedAppKey isEqualToString:store.consumerKey] == NO)
{
    NSLog (@"App key changed since last use!", nil);
}&lt;/PRE&gt;&lt;P&gt;Is there a way of doing this in API 2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I do this is to check that the app hasn't had to change its app key for some reason, which would mess up delta keys for -listFolderContinue:. It's a bit of an edge-case, and the code is really only there because I had to switch between an app folder key and a full access key during beta-testing, so had to ensure an invalid delta value wasn't used after the change-over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Actually, I suppose I can just get it from the info.plist file directly, removing the "db-" prefix.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 09:29:05 GMT</pubDate>
    <dc:creator>Keith B.7</dc:creator>
    <dc:date>2019-05-29T09:29:05Z</dc:date>
    <item>
      <title>How get app key in API 2?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-get-app-key-in-API-2/m-p/191437#M8369</link>
      <description>&lt;P&gt;In API 1, I could get the app key like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NSString *cachedAppKey = ...
MPOAuthCredentialConcreteStore *store = [[DBSession sharedSession] credentialStoreForUserId:nil];
if (cachedAppKey == nil || [cachedAppKey isEqualToString:store.consumerKey] == NO)
{
    NSLog (@"App key changed since last use!", nil);
}&lt;/PRE&gt;&lt;P&gt;Is there a way of doing this in API 2?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The reason I do this is to check that the app hasn't had to change its app key for some reason, which would mess up delta keys for -listFolderContinue:. It's a bit of an edge-case, and the code is really only there because I had to switch between an app folder key and a full access key during beta-testing, so had to ensure an invalid delta value wasn't used after the change-over.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Keith&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT: Actually, I suppose I can just get it from the info.plist file directly, removing the "db-" prefix.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:29:05 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-get-app-key-in-API-2/m-p/191437#M8369</guid>
      <dc:creator>Keith B.7</dc:creator>
      <dc:date>2019-05-29T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: How get app key in API 2?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-get-app-key-in-API-2/m-p/191442#M8371</link>
      <description>&lt;P&gt;Yea, I don't believe the API v2 Objective-C SDK stores the app key in the credential store/keychain like the API v1 Core SDK does.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:00:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-get-app-key-in-API-2/m-p/191442#M8371</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-10-20T19:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: How get app key in API 2?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-get-app-key-in-API-2/m-p/191443#M8372</link>
      <description>&lt;P&gt;Okay, thanks - I'll just grab it directly from the info.plist file, then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;BR /&gt;Keith&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 19:02:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-get-app-key-in-API-2/m-p/191443#M8372</guid>
      <dc:creator>Keith B.7</dc:creator>
      <dc:date>2016-10-20T19:02:23Z</dc:date>
    </item>
  </channel>
</rss>

