Ejemplo n.º 1
0
 /// <summary>
 /// Create a time bound access token for a GitHubApp Installation that can be used to access other API endpoints (requires GitHubApp auth).
 /// </summary>
 /// <remarks>
 /// https://developer.github.com/v3/apps/#create-a-new-installation-token
 /// https://developer.github.com/apps/building-github-apps/authentication-options-for-github-apps/#authenticating-as-an-installation
 /// https://developer.github.com/v3/apps/available-endpoints/
 /// </remarks>
 /// <param name="installationId">The Id of the GitHub App Installation</param>
 public IObservable <AccessToken> CreateInstallationToken(long installationId)
 {
     return(_client.CreateInstallationToken(installationId).ToObservable());
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a time bound access token for a GitHubApp Installation that can be used to access other API endpoints (requires GitHubApp JWT token auth).
 /// </summary>
 /// <param name="installationId">The Id of the GitHub App Installation.</param>
 /// <remarks>
 /// https://developer.github.com/v3/apps/#create-a-new-installation-token https://developer.github.com/apps/building-github-apps/authentication-options-for-github-apps/#authenticating-as-an-installation
 /// https://developer.github.com/v3/apps/available-endpoints/
 /// </remarks>
 /// <returns></returns>
 public async Task <AccessToken> CreateInstallationTokenAsync(long installationId)
 {
     return(await _gitHubAppsClient.CreateInstallationToken(installationId));
 }