Skip to content

Commit

Permalink
Plain readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Owain R Hunt committed Aug 5, 2010
1 parent b0a8751 commit f935188
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions README
@@ -0,0 +1,46 @@
UAGithubEngine
by [Owain R Hunt](http://owainrhunt.com/ "Owain R Hunt")
=================

UAGithubEngine is a practically-complete wrapper around the Github API (the exceptions being the network graph and Gist APIs, which are not currently implemented). Check out the [API documentation](http://develop.github.com/ "Github API Documentation) for full details of what the API can do.

How do I use it?
=================

* Copy across all the files in the 'Engine' group from the UAGithubEngine project into your app's project.

* Where you want to use the engine, follow the example from the included AppController class, making sure you #import "UAGithubEngine.h", and that your class adopts the UAGithubEngineDelegate protocol.

* Implement *at least* the following delegate methods:

- (void)requestSucceeded:(NSString *)connectionIdentifier;
- (void)requestFailed:(NSString *)connectionIdentifier withError:(NSError *)error;

* Implement your choice of the remaining delegate methods, depending on your particular needs:

- (void)connectionStarted:(NSString *)connectionIdentifier;
- (void)connectionFinished:(NSString *)connectionIdentifier;
- (void)usersReceived:(NSArray *)users forConnection:(NSString *)connectionIdentifier;
- (void)repositoriesReceived:(NSArray *)repositories forConnection:(NSString *)connectionIdentifier;
- (void)deployKeysReceived:(NSArray *)deployKeys forConnection:(NSString *)connectionIdentifier;
- (void)collaboratorsReceived:(NSArray *)collaborators forConnection:(NSString *)connectionIdentifier;
- (void)languagesReceived:(NSArray *)languages forConnection:(NSString *)connectionIdentifier;
- (void)tagsReceived:(NSArray *)tags forConnection:(NSString *)connectionIdentifier;
- (void)branchesReceived:(NSArray *)branches forConnection:(NSString *)connectionIdentifier;
- (void)commitsReceived:(NSArray *)commits forConnection:(NSString *)connectionIdentifier;
- (void)issuesReceived:(NSArray *)issues forConnection:(NSString *)connectionIdentifier;
- (void)labelsReceived:(NSArray *)labels forConnection:(NSString *)connectionIdentifier;
- (void)issueCommentsReceived:(NSArray *)issueComments forConnection:(NSString *)connectionIdentifier;
- (void)treeReceived:(NSArray *)treeContents forConnection:(NSString *)connectionIdentifier;
- (void)blobsReceieved:(NSArray *)blobs forConnection:(NSString *)connectionIdentifier;
- (void)blobReceived:(NSArray *)blob forConnection:(NSString *)connectionIdentifier;
- (void)rawBlobReceived:(NSData *)blob forConnection:(NSString *)connectionIdentifier;

* Instantiate an engine, passing a username and API key, then call some methods. For example:

UAGithubEngine *engine = [[UAGithubEngine alloc] initWithUsername:@"aUser" apiKey:@"aKey" delegate:self];
[engine getUser:@"owainhunt"];

* Enjoy. The included AppController class will log the received data, so have a play around and see what happens - and happy app building!

Any questions, comments, improvements and so on, you can find me on Twitter (@orhunt) or send me an email (owain@underscoreapps.com).

0 comments on commit f935188

Please sign in to comment.