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
le h.
9 years agoNew member | Level 1
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?
using json on c#.
- Alexandra F.1New 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?
- 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".
- 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();
} - 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;
} - Greg-DBDropbox Staff
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.)
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,917 PostsLatest Activity: 49 minutes ago
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 or Facebook.
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!