Your workflow is unique 👨💻 - tell us how you use Dropbox here.
Forum Discussion
Tejas_99
8 years agoExplorer | Level 3
Salesforce To dropbox file upload
Hello All, I am trying to upload a file from salesforce to Dropbox. I have created a class in salesforce as per suggestions from the internet. My code is: public class dropBoxApi{ Pu...
Tejas_99
8 years agoExplorer | Level 3
Hi Greg,
Thanks for the reply.
Can you tell me where will I get authorization code?
As you can see in code I already have value for "code" variable before making any request to dropbox.
I already have app key and secret key and I can generate access key by clicking on generate access key button in app console but I don't know from where I will get authorization code.
Greg-DB
Dropbox Community Moderator
8 years agoThe authorization code is given from Dropbox during the OAuth app authorization flow. It would either be returned on the redirect URI, if used, or directly to the user on the Dropbox web site, if not. Please refer to the links in my last post for more information on how this works.
The authorization code is a temporary code used to get an access token. Once you have an access token for the user, you no longer need an authorization code for the user.
Also, if you only need to connect to your own account, you can just use the access token retrieved via the "Generate" button on the App Console as you mentioned. That directly returns an access token for your app and account, without going through the OAuth app authorization flow and getting an authorization code.
The authorization code is a temporary code used to get an access token. Once you have an access token for the user, you no longer need an authorization code for the user.
Also, if you only need to connect to your own account, you can just use the access token retrieved via the "Generate" button on the App Console as you mentioned. That directly returns an access token for your app and account, without going through the OAuth app authorization flow and getting an authorization code.
About Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.
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!