OAuthSwift基于 Swift 的 OAuth 的 iOS 库
OAuthSwift 是基于 Swift 的 OAuth 的 iOS 库,支持 OAuth 1 和 OAuth 2。
示例
// OAuth1.0 let oauthswift = OAuth1Swift( consumerKey: "********", consumerSecret: "********", requestTokenUrl: "https://api.twitter.com/oauth/request_token", authorizeUrl: "https://api.twitter.com/oauth/authorize", accessTokenUrl: "https://api.twitter.com/oauth/access_token" ) oauthswift.authorizeWithCallbackURL( NSURL(string: "oauth-swift://oauth-callback/twitter"), success: { credential, response in println(credential.oauth_token) println(credential.oauth_token_secret) }, failure: failureHandler) // OAuth2.0 let oauthswift = OAuth2Swift( consumerKey: "********", consumerSecret: "********", authorizeUrl: "https://api.instagram.com/oauth/authorize", responseType: "token" ) oauthswift.authorizeWithCallbackURL( NSURL(string: "oauth-swift://oauth-callback/instagram"), scope: "likes+comments", state:"INSTAGRAM", success: { credential, response in println(credential.oauth_token) }, failure: failureHandler)
Setting Swift Compiler
Setting URL Schemes
Images
评论
NDHpple基于 Swift 的 XMLPathQuery 库
NDHpple是XMLPathQuery库的Swift封装器。安装拖拽NDHpple文件到项目中添加以下代码到项目的BridgingHeader:#import <libxml/tree.h&g
NDHpple基于 Swift 的 XMLPathQuery 库
0
NDHpple基于 Swift 的 XMLPathQuery 库
NDHpple 是 XMLPathQuery 库的 Swift 封装器。安装 拖拽 NDHpple
NDHpple基于 Swift 的 XMLPathQuery 库
0
RauthPython 的 OAuth 库
Rauth是一个简单的PythonOAuth1.0/a,OAuth2.0,和Ofly消费者库,基于Requests构建。特点:支持OAuth1.0/a,2.0andOfly常规连接初始化的服务封装认证
RauthPython 的 OAuth 库
0
BAHYouTubeOAuthYouTube 的 OAuth 库
BAHYouTubeOAuth 是一个专为 YouTube 设计的,简单易用的 OAuth 2.0
BAHYouTubeOAuthYouTube 的 OAuth 库
0