zettajs / ZettaKit

The Zetta iOS Client Library.
MIT License
3 stars 2 forks source link

ZettaKit

CI Status Version License Platform

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.


//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);  
}];

Requirements

This library requires the following components

Installation

ZettaKit is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "ZettaKit"

Author

Matthew Dobson, matt@apigee.com

License

ZettaKit is available under the MIT license. See the LICENSE file for more info.