Skip to content

An delightful Sina Weibo library written in Swift

Notifications You must be signed in to change notification settings

lizyyy/SwiftWeiboKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

SwiftWeiboKit

SwiftWeiboKit is An delightful Sina Weibo library written in Swift

Getting started

Drag SwiftWeiboKit.swift to your project

let client = SWKClient(clientID:"YOUR_ID", clientSecret:"YOUR_SECRET", redirectURI:"YOUR_REDIRECT_URI")
    client.presentAuthorizeView(fromViewController: self){
    authResult in
    if authResult{
        client.get("https://api.weibo.com/2/statuses/user_timeline.json"){
        response in
            switch response{
            case .success(let successResp):
                println(successResp.json)
            case .failure(let failureResp):
                println(failureResp)
            }
        }
    }
}

About

An delightful Sina Weibo library written in Swift

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%