Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
In API 1, I could get the app key like this:
NSString *cachedAppKey = ... MPOAuthCredentialConcreteStore *store = [[DBSession sharedSession] credentialStoreForUserId:nil]; if (cachedAppKey == nil || [cachedAppKey isEqualToString:store.consumerKey] == NO) { NSLog (@"App key changed since last use!", nil); }
Is there a way of doing this in API 2?
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.
Thanks,
Keith
EDIT: Actually, I suppose I can just get it from the info.plist file directly, removing the "db-" prefix.
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.
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.
Okay, thanks - I'll just grab it directly from the info.plist file, then.
All the best,
Keith
Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!