We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
whats
3 years agoExplorer | Level 4
Xcode swiftydropbox setup
Hey, Has anyone been able to set up Swiftydropbox without any user prompt ? I dont know the order or what needs to be called. I don't want the user to have to set up any login. Any quick breakdow...
whats
3 years agoExplorer | Level 4
Absolutely understandable, would you be able to direct me on this flow?
Здравко
3 years agoLegendary | Level 20
whats, you can take a look here how you can perform OAuth by hands and use the refresh token in your code (you'll need app secret too by the way).
- whats3 years agoExplorer | Level 4
Hey thank you so much! What does your code look like in xcode once you have these parameters? What are you calling?
- Здравко3 years agoLegendary | Level 20
whats wrote:... What does your code look like in xcode once you have these parameters? What are you calling?
The code anywhere looks exactly like you would code it, nothing else. There is no a single way to do it - it's matter of design decision. If you want to stick as much as possible to the Dropbox Swift SDK, you should use PKCE version of what I posted (i.e. not exactly the same) - Dropbox Swift SDK doesn't support app secret. In such a case (PKCE usage) you need to implement DropboxAccessToken object yourself and pass it further on client object initialization.
To avoid PKCE you need to re-implement (replace) refreshing process (adding app secret there).
Good luck.
- whats3 years agoExplorer | Level 4
Hey Здравко ! I tried building this today and had a few questions if you're know the answers,
-When you say "replace" the refreshing process, what do you mean exactly?
-Where would I use the app secret? Would this only be in the beta 10.0.1?
-Do I use the DropboxTransportClient?
-Is the initial call, dropbox = DropboxClient(key,secret,refreshtoken)? Then use dropbox to call api?
Thank you for all the help !
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!