diff --git a/docs/getting-started.md b/docs/getting-started.md index e7b21b24..d0897296 100644 --- a/docs/getting-started.md +++ b/docs/getting-started.md @@ -40,3 +40,21 @@ Octokit also supports connecting to GitHub Enterprise environments - just provid var ghe = new Uri("https://github.myenterprise.com/"); var client = new GitHubClient(new ProductHeaderValue("my-cool-app"), ghe); ``` + +### Get exploring + +Once you've got that setup, the simplest thing to experiment with is fetching details about a specific user: + +``` +var user = await client.User.Get("shiftkey"); +Console.WriteLine("{0} has {1} public repositories - go check out their profile at {1}", + user.Name, + user.PublicRepos, + user.Url); +``` + +If you've authenticated as a given user, you can query their details directly: + +``` +var user = await client.User.Current(); +``` \ No newline at end of file