Writen an app which needs to connect to multiple drobox account so following the instructions here
http://dropbox.github.io/SwiftyDropbox/api-docs/latest/
I am handling the return URL after authorising and the page says
- "at this point, the app that is integrating with the SDK should persistently save the tokenUid from the DropboxAccessToken field of the DropboxOAuthResult object returned from the handleRedirectURL(or handleRedirectURLTeam) method"
I am struggling to make this work and to come up with the correct code other than the standard below. Can anyone advise how i get the token returned please?
if let authResult = DropboxClientsManager.handleRedirectURL(url)
{
switch authResult
{
case .success:
print("Success! User is logged into Dropbox.")
case .cancel:
print("Authorization flow was manually canceled by user!")
case .error(_, let description):
print("Error: \(description)")
}
}