Skip to content

Instantly share code, notes, and snippets.

@PhilippeBoisney
Created March 1, 2017 08:17
Show Gist options
  • Save PhilippeBoisney/d380e0e2487a8c9bc8212ae9229339ab to your computer and use it in GitHub Desktop.
Save PhilippeBoisney/d380e0e2487a8c9bc8212ae9229339ab to your computer and use it in GitHub Desktop.
if let resultJson: [String:AnyObject] = response.result.value as! [String:AnyObject]!{
if let jsonItem: NSString = resultJson["access_token"] as? NSString{
AlamofireLRQDO.saveToken(jsonItem.description)
completion(CookMinuteConstantes.responseOK)
} else {
completion(CookMinuteConstantes.responseFailed)
}
} else {
completion(CookMinuteConstantes.responseFailed)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment