Package
#n Wyam.GitHub
Usage
-
GitHub()Creates an unauthenticated connection to the GitHub API.
-
GitHub(string token)Creates a connection to the GitHub API with OAuth authentication.
tokenThe token to use.
-
GitHub(string username, string password)Creates a connection to the GitHub API with basic authenticated access.
usernameThe username to use.
passwordThe password to use.
Fluent Methods
Chain these methods together after the constructor to modify behavior.
-
WithRequest(string key, Func<GitHubClient, Object> request)Submits a request to the GitHub client.
keyThe metadata key in which to store the return value of the request function.
requestA function with the request to make.
-
WithRequest(string key, Func<IDocument, IExecutionContext, GitHubClient, Object> request)Submits a request to the GitHub client. This allows you to incorporate data from the execution context and current document in your request.
keyThe metadata key in which to store the return value of the request function.
requestA function with the request to make.
-
WithRequest(string key, Func<IExecutionContext, GitHubClient, Object> request)Submits a request to the GitHub client. This allows you to incorporate data from the execution context in your request.
keyThe metadata key in which to store the return value of the request function.
requestA function with the request to make.
-
WithUrl(string url)Specifies and alternate API URL (such as to an Enterprise GitHub endpoint).
urlThe URL to use.
