Swift 2017-05-31 21:59
Swift OAuth授权库 SwiftyOAuth
回复:0 查看:6363 感兴趣:31 赞:2
SwiftyOAuth 是一个简单的OAuth库,内置了一些主流
OAuth提供者,并有很好的API供你调用。
示例代码:
示例代码:
let instagram: Provider = .instagram(clientID: "***", redirectURL: "foo://callback")
instagram.authorize { result in
print(result) // success(Token(accessToken: "abc123"))
} 提供者包括:
-
GitHub- doc -
Dribbble- doc -
Instagram- doc -
Uber- doc -
Feedly- doc -
Vimeo- doc -
SoundCloud- doc -
StackExchange- doc -
Medium- doc -
Foursquare- doc -
Stripe- doc -
Reddit- doc -
Weibo- doc -
Slack- doc -
Dropbox- doc -
Basecamp- doc -
Spotify- doc -
Meetup- doc -
Strava- doc -
Google- doc -
Stuart- doc -
UberRUSH- doc - More to come...
相关开源代码
EFIconFont: 一个用 Swift 实现的 IconFont 封装
Swift Zip文件压缩与解压框架
EFResume - 一个普通的 Swift 简历模板
Swift 优雅的定时器及执行工具库 Each
Swift 解析、格式化及验证国际电话号码工具库 PhoneNumberKit
Swift 版 FlatBuffers(跨平台序列化库)FlatBuffersSwift
Swift 编写的 Github API 客户端 Github.swift
Swift 音频处理库 TempiFFT
iOS通知中心封装库SwiftNotificationCenter
Swift JSON 解析类 Unbox