测试测试通过 | ✓ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布最后发布 | 2016 年 3 月 |
由 Matthew Dobson 维护。
依赖关系 | |
ReactiveCocoa | = 2.4.7 |
SocketRocket | = 0.4 |
要运行示例项目,请克隆仓库,然后首先从 Example 目录运行 pod install
。
//How to fully crawl your Zetta API
ZIKSession *session = [ZIKSession sharedSession];
RACSignal *root = [session root:[NSURL URLWithString:@"http://zetta-cloud-2.herokuapp.com/"]];
RACSignal *servers = [session servers:root];
RACSignal *devices = [session devices:servers];
[root subscribeNext:^(ZIKRoot *root) {
NSLog(@"%@", root);
}];
[servers subscribeNext:^(ZIKServer *server) {
NSLog(@"%@", server);
}];
[devices subscribeNext:^(ZIKDevice *device) {
NSLog(@"%@", device);
}];
此库需要以下组件
'ReactiveCocoa'@'2.4.7'
'SocketRocket'@'0.3.1-beta2'
ZettaKit 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod "ZettaKit"
Matthew Dobson, [email protected]
ZettaKit 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。