HuntingKit ProductHunt API 封装器开源项目

我要开发同款
匿名用户2015年05月29日
192阅读

技术信息

开源地址
https://github.com/raulriera/HuntingKit
授权协议
MIT

作品详情

HutigKit是ProductHutAPI封装器。

使用示例:

开始之前,先让你的app取得授权证书。

let autheticatioRequest = ProductHut.Edpoit.ClietToke(id: "your-clietId", secret: "your-clietSecret")ProductHut.sedRequest(autheticatioRequest) { respose i    switch respose {    case .Success(let box):        // At this poit HutigKit has stored the credetials i your keychai, you are free to use ay other edpoit available. You also have access to the `AccessToke` yourself.    case .Failure(let box):        // Hadle your errors    }}

得到权限后,就可以获取今天的所有产品。

let request = ProductHut.Edpoit.Posts(from: .Today)ProductHut.sedRequest(request) { [uowed self] respose i    switch respose {    case .Success(let box):        // By ow you have the array of Posts (products) available to you    case .Failure(let box):        // Hadle your errors    }}

 

功能介绍

HuntingKit 是 Product Hunt API 封装器。 使用示例: 开始之前,先让你的 app 取得授权证书。
let authenticationRequest = Prod...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论