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.
token
The token to use.
-
GitHub(string username, string password)
Creates a connection to the GitHub API with basic authenticated access.
username
The username to use.
password
The 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.
key
The metadata key in which to store the return value of the request function.
request
A 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.
key
The metadata key in which to store the return value of the request function.
request
A 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.
key
The metadata key in which to store the return value of the request function.
request
A function with the request to make.
-
WithUrl(string url)
Specifies and alternate API URL (such as to an Enterprise GitHub endpoint).
url
The URL to use.