We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
Brad Henderson
4 months agoExplorer | Level 4
How to get an Access Token from a Refresh token from within B4A
Hello All, I have created a refresh token using the method thanks to "Здравко". Manually using a web browser and Windows Command prompt. The command prompt is: curl https://api.dropbox.com/oa...
- 4 months ago
Hi Brad Henderson,
To be honest I'm not familiar with the environment you're using. On the first look though, it uses OkHttp as underlying library. So you can take a look here for a simplistic example - example how OkHttp works. It may be easier for you to encode everything in the body (i.e. pass in the body text: "grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>&client_id=<APP_KEY>&client_secret=<APP_SECRET>"; replace all "<...>" tags appropriately). Find what matches to desired OkHttp calls exactly in your environment (something, I believe you may do). 😉
Hope this helps.
PS: Just to avoid confusion: The example supposes JSON content, but in your case the content type is different, so instead of "application/json" (as is in the example) you have to set "application/x-www-form-urlencoded" as content type (MediaType in the example).
Здравко
4 months agoLegendary | Level 20
Hi Brad Henderson,
To be honest I'm not familiar with the environment you're using. On the first look though, it uses OkHttp as underlying library. So you can take a look here for a simplistic example - example how OkHttp works. It may be easier for you to encode everything in the body (i.e. pass in the body text: "grant_type=refresh_token&refresh_token=<REFRESH_TOKEN>&client_id=<APP_KEY>&client_secret=<APP_SECRET>"; replace all "<...>" tags appropriately). Find what matches to desired OkHttp calls exactly in your environment (something, I believe you may do). 😉
Hope this helps.
PS: Just to avoid confusion: The example supposes JSON content, but in your case the content type is different, so instead of "application/json" (as is in the example) you have to set "application/x-www-form-urlencoded" as content type (MediaType in the example).
- Brad Henderson4 months agoExplorer | Level 4
Thank you ,
I will look into this. This is new so will need to research more.
Thanks again
About Discuss Dropbox Developer & API
Make connections with other developers
795 PostsLatest Activity: 5 days agoIf 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!