Skip to content
Small wrapper class for the ZooTool API
Objective-C C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
APReachability.h
APReachability.m
NSString+SHA1.h
NSString+SHA1.m
README.markdown
ZTComment.h
ZTComment.m
ZTDataObject.h
ZTDataObject.m
ZTItem.h
ZTItem.m
ZTPack.h
ZTPack.m
ZTProxy.h
ZTProxy.m
ZTTag.h
ZTTag.m
ZTUser.h
ZTUser.m

README.markdown

ZTProxy

ZTProxy is a small helper to access the ZooTool API within an objective-C app.

ZTProxy requires json-framework

Example

    ZTProxy* prox = [ZTProxy defaultProxy];
    NSURLCredential* cred = [NSURLCredential credentialWithUser:@"XXX" 
                                                   password:@"XXX" 
                                                persistence:NSURLCredentialPersistencePermanent];
    [prox useCredential:cred];
    NSLog(@"%@", [prox userWithUsername:@"bastian"]);
    NSLog(@"%@", [prox itemWithUID:@"ooq2k"]);
    NSLog(@"%@", [prox userFriendsWithUsername:@"bastian" withRange:NSMakeRange(1, 2)]);
    NSLog(@"%@", [prox popularItemsWithRange:NSMakeRange(1, 2)]);
Something went wrong with that request. Please try again.