mirror of
https://github.com/zoriya/octokit.net.git
synced 2025-12-06 07:16:09 +00:00
Spelling correction and move some code around
This commit is contained in:
@@ -10,7 +10,7 @@ namespace Burr.Tests
|
||||
{
|
||||
public Readme()
|
||||
{
|
||||
// create an anonlymous client
|
||||
// create an anonymous client
|
||||
var client = new GitHubClient();
|
||||
|
||||
// create a client with basic auth
|
||||
@@ -19,8 +19,6 @@ namespace Burr.Tests
|
||||
// create a client with an oauth token
|
||||
client = new GitHubClient { Token = "oauthtoken" };
|
||||
|
||||
client.GetUserAsync();
|
||||
|
||||
//// Authorizations API
|
||||
//var authorizations = client.Authorizations.All();
|
||||
//var authorization = client.Authorizations.Get(1);
|
||||
@@ -28,8 +26,6 @@ namespace Burr.Tests
|
||||
//var a = client.Authorizations.Update(1, scopes: new[] { "user", "repo" }, "notes", "http://notes_url");
|
||||
//var token = client.Authorizations.Create(new[] { "user", "repo" }, "notes", "http://notes_url");
|
||||
|
||||
|
||||
|
||||
//var gists = client.Gists.All();
|
||||
//var gists = client.Gists.All("user");
|
||||
//var gists = client.Gists.Public();
|
||||
@@ -38,5 +34,11 @@ namespace Burr.Tests
|
||||
|
||||
//client.Gists.Create();
|
||||
}
|
||||
|
||||
public async Task UserApi()
|
||||
{
|
||||
var client = new GitHubClient();
|
||||
var user = await client.GetUserAsync("octocat");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user