I need some sample code to log in to GitHub and request any authentication method. Thank.
GitHub API libraries reference official octokit.net , which has samples in its repository.
GitHubSharp can help you, just look at the samples and then at the code.