clubhouse-ios-api 0.1.0

clubhouse-ios-api 0.1.0

测试已测试
Lang语言 SwiftSwift
许可证 MIT
发布上次发布2016年5月
SPM支持SPM

Al Tyus维护。



 
依赖项
Alamofire~> 3.4.0
SwiftyJSON~> 2.3.2
 

  • 作者
  • altyus

clubhouse-ios-api

特性

  • 将Clubhouse对象反序列化为独特的Swift结构体
  • 使用Swift枚举安全处理和约束可选参数
  • 基于Alamofire和SwiftyJSON构建
  • 映射所有的Clubhouse.io API调用

文档

Clubhouse API文档

入门

  1. 注册Clubhouse API令牌(登录Clubhouse,设置 -> API令牌)
  2. 在您的AppDelegate中:
import clubhouse_ios_api

func application(application: UIApplication,
  didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool      
{
    ClubhouseAPI.configure("{ENTER-TOKEN-HERE}")
    return true
}

安装

clubhouse-ios-api可通过CocoaPods获得。要安装它,只需将以下行添加到您的Podfile中:

pod "clubhouse-ios-api"

用法

ClubhouseAPI.sharedInstance.searchStories([StoryParam.EpicId(123)], success: { stories in
            self.stories = stories.sort { $0.name?.lowercaseString < $1.name?.lowercaseString }
            self.tableView.reloadData()
            }, failure: { error in
                print(error)
        })

许可证

clubhouse-ios-api在MIT许可下可用。有关更多信息,请参阅LICENSE文件。