- 授权协议: MIT
- 开发语言: Swift
- 操作系统: OS X
- 软件首页: https://github.com/mattdonnelly/Swifter
软件介绍
Swifter 是一个用 Swift 开发的 iOS & OS X 的 Twitter 框架。
示例代码:
//Instantiation with ACAccount:
let swifter = Swifter(account: twitterAccount)
//Instansiation with OAuth:
let swifter = Swifter(consumerKey: "", consumerSecret: "")
swifter.authorizeWithCallbackURL(callbackURL, success: {
accessToken, response in
// ...
},
failure: {
// ...
})
swifter.getStatusesHomeTimelineWithCount(20, sinceID: nil, maxID: nil, trimUser: true, contributorDetails: false, includeEntities: true, success: {
statuses, response in
// ...
}, failure: {
// ...
})
