HuntingKitProductHunt API 封装器
HuntingKit 是 Product Hunt API 封装器。
使用示例:
开始之前,先让你的 app 取得授权证书。
let authenticationRequest = ProductHunt.Endpoint.ClientToken(id: "your-clientId", secret: "your-clientSecret") ProductHunt.sendRequest(authenticationRequest) { response in switch response { case .Success(let box): // At this point HuntingKit has stored the credentials in your keychain, you are free to use any other endpoint available. You also have access to the `AccessToken` yourself. case .Failure(let box): // Handle your errors } }
得到权限后,就可以获取今天的所有产品。
let request = ProductHunt.Endpoint.Posts(from: .Today) ProductHunt.sendRequest(request) { [unowned self] response in switch response { case .Success(let box): // By now you have the array of Posts (products) available to you case .Failure(let box): // Handle your errors } }
评论
JNKeychainKeychain API 封装器
JNKeychain是最简单的KeychainAPI封装器,提供三个简单的方法来保存,加载和删除keychain的值。无需安装,没有域名,也可以运行。
JNKeychainKeychain API 封装器
0
JNKeychainKeychain API 封装器
JNKeychain 是最简单的 Keychain API 封装器,提供三个简单的方法来保存,加载和
JNKeychainKeychain API 封装器
0
JRAWReddit API 封装器
JRAW是RedditAPI封装器。重要特性:Java7兼容迷你的HTTP框架,封装了OkHttp支持基础的网站行为(login,vote,submit,comment,readinbox,etc.)
JRAWReddit API 封装器
0
DribbbleSDKDribbble API 的 iOS 封装器
DribbbleSDK 是一个容易使用的 Dribbble API 的 iOS 封装器。它提供了 H
DribbbleSDKDribbble API 的 iOS 封装器
0
DribbbleSDKDribbble API 的 iOS 封装器
DribbbleSDK是一个容易使用的DribbbleAPI的iOS封装器。它提供了HTTPAPI调用包装,数据模型类,且易于集成的OAuth。
DribbbleSDKDribbble API 的 iOS 封装器
0