Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Zard
2 years agoExplorer | Level 4
How to get data in Url by Token flow ?
https://localhost:8080/authorize#access_token=ABCDEFG&token_type=bearer&account_id=dbid%3AAAH4f99T0taONIb-OurWxbNQ6ywGRopQngc&uid=12345&state=[STATE]
As docs said, the data is behind of # i...
Greg-DB
Dropbox Community Moderator
2 years agoZard As Здравко noted, you can find an example of getting the information from the URL in that example in the SDK.
The "token" flow is no longer recommended in general though, in favor of the "code" flow, using PKCE for client-side apps, such as shown in this PKCE example in the Dropbox JavaScript SDK. You can find more information in the authorization documentation.
Zard
2 years agoExplorer | Level 4
It's my fault, I am using Net Core, the examples code of .net is too old, I can't understanf them.
I try to use Restsharp to post http request. I tried the code flow, but it's complex with OAuth 2.0, and I see Token Flow can get token directly, so I wan to try it, but I can't get data from url easily.
This is my first to use OAuth 2.0, When integrating other APIs, they only need apikey, apiSecret, or token to complete authentication, I Just want to use Dropbox api when users are uploading files. and My app is like that:
/contents/authorize: I add this action to get code, but it return me a html code in content of response.
/contents/token: this action to to receive code and to get a token by api.
/contents: upload files and submit form data, but I can not get token directly by one action, it needs to redirect to html and back, that I can not get token directly when submitting form.
would you help me solve this? Although it can get token by two actions, I just want use api when submit form, thanks a lot.
About Discuss Dropbox Developer and API
Explore Dropbox Developer & API discussions with developers like you.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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, Facebook or Instagram.
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!