Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Small wrapper class for the ZooTool API

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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.