You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

jk-devil's avatar
jk-devil
New member | Level 2
8 years ago

Can i list all files using secondary account.

Hi

 

I had created a dropbox account with my company email address and also created core API with the same email. After integrating core API i just tested in another browser and authenticate with my dropbox account associated with personal email. But i can't view files with dropbox account associate with company email. I want to list all from API created account 

 

Kindest Regards,

  • If i want to access my company Dropbox account via the API, can i signed in to another account.
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    You can "link" or "authorize" an API app to connect multiple accounts. To do so, you should go through the OAuth app authorization flow for each account you want it to connect to. You can find more information on the OAuth app authorization flow in the OAuth guide.

     

    At the end of the flow, your app will receive an access token for that account. When using the Dropbox API, each access token will allow your app to access one account. If you need to access two different accounts, you'll need two access tokens. (One for each account.)

     

    So, if you want to access your company Dropbox account via the API, you'll need to go through the OAuth app authorization flow while signed in to that account.

     

    (One shortcut is that if the app is owned by the account you want to link it to, you can use the "Generate" button on the app's page on the App Console, as noted in the OAuth guide.)

    • jk-devil's avatar
      jk-devil
      New member | Level 2
      If i want to access my company Dropbox account via the API, can i signed in to another account.