Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get my APP_KEY and SECRET_KEY for Dropbox sync?

I'm trying to build in the opportunity to sync my application's *.csv files with desirable dropbox account. What I've done so far:

  1. Permissions and com.dropbox.client2.android.AuthActivity in manifest
  2. Signed my app with my release-key-store
  3. Implemented some code to check dropbox service

The problem is that I can't understand where do I get APP_KEY and SECRET_KEY for this matter?

When I try to launch the app I'm getting this:

05-22 12:31:54.762: E/AndroidRuntime(5587):     at com.dropbox.sync.android.CoreAccountManager.initNativeLib(CoreAccountManager.java:109)

05-22 12:31:54.762: E/AndroidRuntime(5587):     at com.dropbox.sync.android.CoreAccountManager.<init>(CoreAccountManager.java:89)

05-22 12:31:54.762: E/AndroidRuntime(5587):     at com.dropbox.sync.android.DbxAccountManager.getInstance(DbxAccountManager.java:112)

Any clue what am I doing wrong?

like image 658
alexsalo Avatar asked May 22 '13 12:05

alexsalo


People also ask

Does Dropbox have an open API?

Dropbox supports OAuth 2.0 for authorizing API requests. Find out more in our OAuth guide. Authorized requests to the API should use an Authorization header with the value Bearer <TOKEN> , where <TOKEN> is an access token obtained through the OAuth flow.

Is Dropbox API free?

You'll need to have a Dropbox account to access the APIs. If you don't already have one, you can sign up for a free account here.


2 Answers

Ok, I got the answer, you should lend to register_your_app_page first and you will get you keys there.

And don't forget to copy all libs provided with dropbox sdk in order to avoid init problems.

like image 109
alexsalo Avatar answered Sep 23 '22 21:09

alexsalo


Step 1: Sign in new Dropbox Account here, Create your Dropbox APP HERE

Step 2: There are 2 options available creating a app, Drops-in App & Dropbox API App. You have to select Dropbox API app and give the name of your app.

step 3: Go to App Console and select your created app. Under settings tab you can see the APP_KEY(App key) and SECRET_KEY(App secret)

like image 44
Kannan S Avatar answered Sep 19 '22 21:09

Kannan S