Last active
November 3, 2015 01:28
-
-
Save ryanrousseau/265ee01c76597cdf281b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Octokit; | |
public GitHubClient Create(string productHeaderValue) | |
{ | |
var client = new GitHubClient(new ProductHeaderValue(productHeaderValue)); | |
return client; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#load github.csx | |
var client = Create("gist-265ee01c76597cdf281b"); | |
var eventsTask = client.Activity.Events.GetAllUserPerformed("ryanrousseau"); | |
var events = eventsTask.Result; | |
foreach (var userEvent in events) | |
{ | |
Console.WriteLine(userEvent.Type); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="Octokit" version="0.16.0" targetFramework="net45" /> | |
</packages> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment