Swift开发的Twitter框架:Swifter

分享到:

Swifter 是一个用 Swift 开发的 iOS & OS X 的 Twitter 框架。
swifter_logo.png

示例代码:

//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: {
// ...
})

项目主页:http://www.open-open.com/lib/view/home/1404272065342

昵    称:
验证码:

相关文档: