I am new to Octokit.NET. Trying to use it to login to my repo and then get a particular repository in a WinRT 8.1 Universal app. Ultimately I want to read some .cs files in that repo as text. I am using following code to authenticate and get all repos. However I keep empty error message. Not sure if I am using the Octokit the right way-
var credentials = GithubHelper.Credentials;
var connection = new Octokit.Connection(new Octokit.ProductHeaderValue("dotnet-test-functional"),new Uri("https://mygit.github.com"))
{
Credentials = credentials
};
var octokitClient = new Octokit.GitHubClient(connection);
IReadOnlyList <Octokit.Repository> repos = await octokitClient.Repository.GetAllForCurrent();
I would appreciate if someone can help me out with this.
Thanks