From e0f954c5f61ea8cc73841480538765221260ae81 Mon Sep 17 00:00:00 2001 From: Tim Clem Date: Fri, 27 Apr 2012 17:55:08 -0700 Subject: [PATCH] Spelling correction and move some code around --- Burr.Tests.Integration/Readme.cs | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Burr.Tests.Integration/Readme.cs b/Burr.Tests.Integration/Readme.cs index 47d0f35e..cf3c88cb 100644 --- a/Burr.Tests.Integration/Readme.cs +++ b/Burr.Tests.Integration/Readme.cs @@ -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"); + } } }