Created
September 23, 2016 14:41
-
-
Save pepicrft/421d9bea3a8c797d083bb1fa99e3be08 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let provider = SoundCloudProvider(clientId: "xxx", clientSecret: "yyy", redirectUri: "test://test") | |
let webview = OAuth2WebView(frame: self.view.frame, provider: provider) { (session, error) | |
if let session = session { | |
print("User access token: \(session.accessToken)") | |
} else if let error = error { | |
print("Something went wrong during the authentication: \(error)") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment