Created
March 1, 2017 08:17
-
-
Save PhilippeBoisney/d380e0e2487a8c9bc8212ae9229339ab to your computer and use it in GitHub Desktop.
This file contains 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
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