cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Share your feedback on the Document Scanning Experience in the Dropbox App right 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: 

How to programmatically get the Authorization code without requiring the user approval in OAuth 2.0

How to programmatically get the Authorization code without requiring the user approval in OAuth 2.0

Ivan_
Helpful | Level 6
Go to solution

Hi,

I need to get approve code programmatically without this form via c# code 

Ivan__0-1664794638293.png

 

 this is my code

Ivan__1-1664794703052.png

How it should be modified in order to get approve code automatically without user actions ?

Thanks in advance 

14 Replies 14

Ivan_
Helpful | Level 6
Go to solution

Understood, thanks

chemical21
Explorer | Level 4

We need a clear full functional example, how 

 

Get Autorization code in plain easy way

 

e and vou to get accesstoken buy using it.

 

Until now its totaly teorical.

Здравко
Legendary | Level 20

@chemical21 wrote:

We need a clear full functional example, how 

...


One example in Python can be seen here. It's easy to "translate" it to any other programing language, convenient for you. In every SDKs are examples too.

 


@chemical21 wrote:

...

Get Autorization code in plain easy way

...


What do you mean "code in plain easy way"? :thinking_face: You can receive it either as text in the page or through redirects - whatever is more convenient for you in particular use case. Just keep in mind that for long term usage, you will need refresh token (offline access), not only access token.

chemical21
Explorer | Level 4

The better example could be a form with 3 buttons and textboxs:

 

Button1 - Get autorization code and fill a textbox1 with url string to get accesstoken

Button2 - Get Accestoken and fill a textbox with the url string with the accesstoken grant access finaly. 

Button3 - Click and get the access the resources needed.

and a result of all this in a testbox.

Greg-DB
Dropbox Staff

@chemical21 Thanks for the feedback!

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    chemical21 Explorer | Level 4
  • User avatar
    Здравко Legendary | Level 20
  • User avatar
    Ivan_ Helpful | Level 6
What do Dropbox user levels mean?