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: 

I was trying to https://api.dropboxapi.com/2/files/list_folder?access_token=.... but don't run. Where is wrong?

I was trying to https://api.dropboxapi.com/2/files/list_folder?access_token=.... but don't run. Where is wrong?

le h.
New member | Level 1

I was trying to https://api.dropboxapi.com/2/files/list_folder?access_token=.... but don't run. Where is wrong?

using json on c#.

5 Replies 5

Re: I was trying to https://api.dropboxapi.com/2/files/list_folder?access_token=.... but don't run. Where is wrong?

Alexandra F.1
New member | Level 1

This could be a number of issues. Can you share the code snippet that calls the endpoint, and the full text of the error output? 

Re: I was trying to https://api.dropboxapi.com/2/files/list_folder?access_token=.... but don't run. Where is wrong?

le h.
New member | Level 1

Error in call to API function "users/get_current_account": Must provide HTTP header "Authorization" or URL parameter "authorization".

Re: I was trying to https://api.dropboxapi.com/2/files/list_folder?access_token=.... but don't run. Where is wrong?

le h.
New member | Level 1

public async Task<string> Httpclient(string link)
{
HttpClient client = new HttpClient();
HttpResponseMessage response= await client.GetAsync(link);
return await response.Content.ReadAsStringAsync();
}

Re: I was trying to https://api.dropboxapi.com/2/files/list_folder?access_token=.... but don't run. Where is wrong?

le h.
New member | Level 1

public async Task<Model.Get_Current_Account.RootObject> get_current_account(string _accessToken)
{
var query = await mainViewModel.Httpclient("https://api.dropboxapi.com/2/users/get_current_account?access_token="+_accessToken);
if (query != null)
{
var get_data = JsonConvert.DeserializeObject<Model.Get_Current_Account.RootObject>(query);
return get_data;
}
else
return null;
}

Re: I was trying to https://api.dropboxapi.com/2/files/list_folder?access_token=.... but don't run. Where is wrong?

Greg-DB
Dropboxer

You're using a URL parameter named "access_token", but per the error message that should instead be named "authorization". (Or, you can use an Authorization header.)

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
  • User avatar
    le h. New member | Level 1
  • User avatar
    Alexandra F.1 New member | Level 1
What do Dropbox user levels mean?
Need more support?