SwiftOAuth2是OAuth2的Swift实现。
使用
首先要创建一个CROAuth2Client对象:
// From a UIViewController (used to present the authentication webview if necessary)
CROAuth2Client.clientWithPresentingController(self)
简单的查询访问token:
self.client!.retrieveAuthToken({ (authToken) -> Void in
if let optionna