Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
vewert
5 years agoExplorer | Level 4
How to set clientIdentifier, using SwiftyDropbox
In the Java API, a clientIdentifier is set when creating a DbxRequestConfig object. I'm wondering, is there an equivalent in SwiftyDropbox? I was trying to search it myself, but it seem like the link...
- 5 years ago
Yes, those are optional so you can set them to nil, except for "accessToken", but it looks like you can just set that to an empty string, assuming you're using the standard authorization functionality such as authorizeFromControllerV2 and authorizedClient which will take care of that for you.
vewert
2 years agoExplorer | Level 4
Yes, I am using the standard authorization functionality (authorizeFromControllerV2) as in the sample code.
The difference between my code, and the sample code is in how a call `setupWithAppKey` inside the AppDelegate. In order to set the userAgent, I create an instance of transportClient:
let transportClient: DropboxTransportClientImpl = DropboxTransportClientImpl(
accessToken: "",
userAgent: userAgent,
selectUser: nil)
and then call:
DropboxClientsManager.setupWithAppKey("<APP_KEY>", transportClient: transportClient)
if I don't use the transportClient, and simply call:
DropboxClientsManager.setupWithAppKey("<APP_KEY>")
then the refresh token seems to work, and I don't get the expired token error.
This used to all work before I upgraded to SwiftyDropbox 10 (10.0.1), but now it doesn't, so I suspect there may have been a change in the DropboxTransportClientImpl initializer code.
Greg-DB
Dropbox Community Moderator
2 years agoThanks! We'll look into it and follow up here once we have any news on this.
- vewert2 years agoExplorer | Level 4
Thanks, would it be helpful for me to log the issue in your GitHub repository (https://github.com/dropbox/SwiftyDropbox/issues)?
- Greg-DB2 years ago
Dropbox Community Moderator
No, this forum thread is sufficient. Thanks!
- Greg-DB2 years ago
Dropbox Community Moderator
vewert That should be fixed in the new v10.0.3 release. Please give that a try and let us know if you see any issues. Thanks!
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!