Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

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

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.

2 Replies

Replies have been turned off for this discussion
  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago

    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
    8 years ago
    If i want to access my company Dropbox account via the API, can i signed in to another account.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

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!