

Redirect to external browser (macOS only): This launches the user's default browser to facillitate the auth flow.This is desirable because it is safer for the end-user, and pre-existing session data can be used to avoid requiring the user to re-enter their Dropbox credentials. Safari view controller auth (iOS only): This launches a SFSafariViewController to facillitate the auth flow.Direct auth (iOS only): This launches the official Dropbox iOS app (if installed), authenticates via the official app, then redirects back into the SDK.There are three methods to programmatically retrieve an OAuth 2.0 access token: plist file should look something like this: The Dropbox Swift SDK can be installed in your project using Swift Package Manager by specifying the Dropbox Swift SDK repository URL:Īfter you've made the above changes, your application's. You can integrate the Dropbox Swift SDK into your project using one of several methods.

Otherwise, you can obtain an OAuth token programmatically using the SDK's pre-defined auth flow. Once you've created an app, you can go to the App Console and manually generate an access token to authorize your app to access your own Dropbox account. An OAuth token represents an authenticated link between a Dropbox app and Obtain an OAuth 2.0 tokenĪll requests need to be made with an OAuth 2.0 access token. This creates a record of your app with Dropbox that will be associated with the API calls you make.

Whether you’re building your business or optimizing internal workflows, the DBX Platform lets you add Dropbox features to your apps, such as file storage, sharing, previews, and. Integrate your apps with the content and collaboration solution trusted by more than 700 million users and 500,000 teams. Xcode 10.0+ (11.0+ if you use Carthage)īefore using this SDK, you should register your application in the Dropbox App Console. Develop apps for 700 million Dropbox users.The Official Dropbox Swift SDK for integrating with Dropbox API v2 on iOS or macOS.
