Twitter SwifterTwitter 框架
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: { // ... })
评论