A simple API in terms of querying github with C#, based on RestSharp.
using Git.hub;
Client client = new Client();
OAuth token:
client.setOAuth2Token("0fd...");
Username and Password:
client.setCredentials("mabako", "super duper password");
Retrieve the currently logged in user:
User user = client.getUser();
IList<Repository> repos = client.getRepositories("mabako");
IList<Repository> orgRepos = client.getOrganizationRepositories("github");
Repository pluginSource = client.getRepository("mabako", "Git.hub");
/* Requires login */
IList<Repository> ownRepos = client.getRepositories();
Fork the repo:
Repository forked = pluginSource.CreateFork();
List branches:
IList<Branch> branches = pluginSource.GetBranches();