You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Ditza
4 years agoExplorer | Level 3
short-lived access tokens
Hi, My company has an application that uses dropbox API, to upload files to drop box. We got an email that said that there is an update in the access token. I tried to understand if it will af...
- 4 years ago
The new authorization functionality was added in v6.0.0, so you'll want to use the latest version after that which you can support in your project. You can find the release history here. The Alamofire dependency was updated in v8.0.0, so you may want to try the latest before that, v7.0.1. Otherwise, if that doesn't work due to Swift compatibility, you may need to use v6.0.2.
Greg-DB
Dropbox Staff
1. The API includes information about the expiration of a short-lived access token when returning it. (It's four hours, but you should use the value returned by the API.) If you're using an SDK, it will translate these API responses for you automatically.
2. Short-lived access token expiration does not rely on whether or not the access token is or was being actively used.
3. Access to this API functionality does not depend on the age of the account.
Ditza
4 years agoExplorer | Level 3
O.k. so I want to update for the knew short-life tokens.
I am using:
1. Xcode 12.5.1
2. swift 4.2
3. minimum deployment target -> ipad iOS 14.0
4. SwiftyDropbox 5.0.0
I looked in GitHub readme and I saw I need to use this function
authorizeFromControllerV2
Which is not included in my SDK
I wanted to update the SDK version to 8.0.0 but so that the system requirements are not suited for mine. I still using swift 4.2.
I tried to force updating to 8.0.0 and got error
Analyzing dependencies
[!] CocoaPods could not find compatible versions for pod "Alamofire":
In snapshot (Podfile.lock):
Alamofire (= 4.7.3, ~> 4.3, ~> 4.7.3)
In Podfile:
Alamofire (~> 4.3)
SwiftyDropbox (~> 8.0.1) was resolved to 8.0.1, which depends on
Alamofire (~> 5.4.3)
Specs satisfying the `Alamofire (~> 4.3), Alamofire (= 4.7.3, ~> 4.3, ~> 4.7.3), Alamofire (~> 5.4.3)` dependency were found, but they required a higher minimum deployment target.
Is there is a way to use the new short-life token without changing my swift version and my minimum target version?
- Greg-DB4 years agoDropbox Staff
The new authorization functionality was added in v6.0.0, so you'll want to use the latest version after that which you can support in your project. You can find the release history here. The Alamofire dependency was updated in v8.0.0, so you may want to try the latest before that, v7.0.1. Otherwise, if that doesn't work due to Swift compatibility, you may need to use v6.0.2.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,915 PostsLatest Activity: 6 hours 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!