iOS 使用访问令牌的 Dropbox Core SDK
Dropbox Core SDK for iOS using access token
我需要将文件从我的 iOS 应用程序上传到我的 Dropbox 帐户。我正在按照本教程进行操作:https://www.dropbox.com/developers/core/start/ios。但是我不明白如何在不通过身份验证流程的情况下使用生成的访问令牌访问我自己的帐户。
生成的访问令牌在 Dropbox App Console is an OAuth 2 access token, just meant as a shortcut to let your app to your own account. The Dropbox iOS Core SDK uses OAuth 1 though, so you can't use the generated access token with it. That being the case, you'll need to implement the app authorization flow so that you, and additionally your end-users, can link your iOS app to their Dropbox accounts, as shown in the tutorial 上可用。
如果您只需要 link 到您自己的帐户,您仍然需要为您自己的帐户处理一次应用程序授权流程以获得 OAuth 1 访问令牌。
我需要将文件从我的 iOS 应用程序上传到我的 Dropbox 帐户。我正在按照本教程进行操作:https://www.dropbox.com/developers/core/start/ios。但是我不明白如何在不通过身份验证流程的情况下使用生成的访问令牌访问我自己的帐户。
生成的访问令牌在 Dropbox App Console is an OAuth 2 access token, just meant as a shortcut to let your app to your own account. The Dropbox iOS Core SDK uses OAuth 1 though, so you can't use the generated access token with it. That being the case, you'll need to implement the app authorization flow so that you, and additionally your end-users, can link your iOS app to their Dropbox accounts, as shown in the tutorial 上可用。
如果您只需要 link 到您自己的帐户,您仍然需要为您自己的帐户处理一次应用程序授权流程以获得 OAuth 1 访问令牌。