cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done here!

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API 1 vs API 2

API 1 vs API 2

anand19196
Explorer | Level 4

Hi Support,

While I am triying to access the Api  "https://api.dropboxapi.com/2/users/get_account" its shown this site can't be reached.

But i can use this https://api.dropboxapi.com/1/account/info

So please provide the different between this two URLs.

Regards,

Anandaraj

 

1 Reply 1

Re: API 1 vs API 2

Greg-DB
Dropboxer

API v2 does operate differently than API v1, so the way you call it will be different. The URL https://api.dropboxapi.com/2/users/get_current_account is the right endpoint for getting the user's account information via API v2. You can find the documentation for it here:

 

https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account

 

It requires a POST request, such as seen in the curl example in the documentation there:

 

curl -X POST https://api.dropboxapi.com/2/users/get_current_account \
    --header "Authorization: Bearer ACCESS_TOKEN_HERE"

 

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?