Swift开发的推ter框架:Swifter

jopen 10年前

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

示例代码:

//Instantiation with ACAccount:  let swifter = Swifter(account: 推terAccount)    //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