Learn how to make the most out of the Dropbox Community here 💙. 

Forum Discussion

samamerrifield's avatar
samamerrifield
Explorer | Level 3
8 years ago

DropBoxRest API in C# OAuth2 Does not contain a definition for AuthorizeAsync

I'm not entirely sure where this goes. I'm trying to write a program that access specific files in my dropbox account but it keeps giving me this error message. How do I fix that?

 

The error message appears on just this line of code:

var authRequestUrl = await client.Core.OAuth2.AuthorizeAsync("code");

 

I'm still kind of learning how to use this. I got the code from this site https://github.com/saguiitay/DropboxRestAPI

 

Can anyone help?

 

Update: Oops! I sort of found the solution right after I posted this. Idk if it really fixes my problem yet but on the site above someone asks a similar question and says to use this line instead:

 

var authRequestUrl = client.Core.OAuth2.Authorize("code");