C# Класс Octokit.GitHubClient

A Client for the GitHub API v3. You can read more about the api here: http://developer.github.com.
Наследование: IGitHubClient
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
GitHubApiUrl System.Uri

Открытые методы

Метод Описание
GetLastApiInfo ( ) : Octokit.ApiInfo

Gets the latest API Info - this will be null if no API calls have been made

GitHubClient ( IConnection connection ) : System

Create a new instance of the GitHub API v3 client using the specified connection.

GitHubClient ( Octokit.ProductHeaderValue productInformation ) : System

Create a new instance of the GitHub API v3 client pointing to https://api.github.com/

GitHubClient ( Octokit.ProductHeaderValue productInformation, ICredentialStore credentialStore ) : System

Create a new instance of the GitHub API v3 client pointing to https://api.github.com/

GitHubClient ( Octokit.ProductHeaderValue productInformation, ICredentialStore credentialStore, Uri baseAddress ) : System

Create a new instance of the GitHub API v3 client pointing to the specified baseAddress.

GitHubClient ( Octokit.ProductHeaderValue productInformation, Uri baseAddress ) : System

Create a new instance of the GitHub API v3 client pointing to the specified baseAddress.

Приватные методы

Метод Описание
FixUpBaseUri ( Uri uri ) : Uri

Описание методов

GetLastApiInfo() публичный Метод

Gets the latest API Info - this will be null if no API calls have been made
public GetLastApiInfo ( ) : Octokit.ApiInfo
Результат Octokit.ApiInfo

GitHubClient() публичный Метод

Create a new instance of the GitHub API v3 client using the specified connection.
public GitHubClient ( IConnection connection ) : System
connection IConnection The underlying used to make requests
Результат System

GitHubClient() публичный Метод

Create a new instance of the GitHub API v3 client pointing to https://api.github.com/
public GitHubClient ( Octokit.ProductHeaderValue productInformation ) : System
productInformation Octokit.ProductHeaderValue /// The name (and optionally version) of the product using this library. This is sent to the server as part of /// the user agent for analytics purposes. ///
Результат System

GitHubClient() публичный Метод

Create a new instance of the GitHub API v3 client pointing to https://api.github.com/
public GitHubClient ( Octokit.ProductHeaderValue productInformation, ICredentialStore credentialStore ) : System
productInformation Octokit.ProductHeaderValue /// The name (and optionally version) of the product using this library. This is sent to the server as part of /// the user agent for analytics purposes. ///
credentialStore ICredentialStore Provides credentials to the client when making requests
Результат System

GitHubClient() публичный Метод

Create a new instance of the GitHub API v3 client pointing to the specified baseAddress.
public GitHubClient ( Octokit.ProductHeaderValue productInformation, ICredentialStore credentialStore, Uri baseAddress ) : System
productInformation Octokit.ProductHeaderValue /// The name (and optionally version) of the product using this library. This is sent to the server as part of /// the user agent for analytics purposes. ///
credentialStore ICredentialStore Provides credentials to the client when making requests
baseAddress System.Uri /// The address to point this client to. Typically used for GitHub Enterprise /// instances
Результат System

GitHubClient() публичный Метод

Create a new instance of the GitHub API v3 client pointing to the specified baseAddress.
public GitHubClient ( Octokit.ProductHeaderValue productInformation, Uri baseAddress ) : System
productInformation Octokit.ProductHeaderValue /// The name (and optionally version) of the product using this library. This is sent to the server as part of /// the user agent for analytics purposes. ///
baseAddress System.Uri /// The address to point this client to. Typically used for GitHub Enterprise /// instances
Результат System

Описание свойств

GitHubApiUrl публичное статическое свойство

The base address for the GitHub API
public static Uri,System GitHubApiUrl
Результат System.Uri