Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: appClient - add GitHubApps subclass to method calls #1853

Merged
merged 1 commit into from
Jul 29, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/github-apps.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ Now we have an authenticated `GitHubApp` (`appClient`), we can query various top

``` csharp
// Get the current authenticated GitHubApp
var app = await appClient.GetCurrent();
var app = await appClient.GitHubApps.GetCurrent();

// Get a list of installations for the authenticated GitHubApp
var installations = await appClient.GetAllInstallationsForCurrent();
var installations = await appClient.GitHubApps.GetAllInstallationsForCurrent();

// Get a specific installation of the authenticated GitHubApp by it's installation Id
var installation = await appClient.GetInstallation(123);
var installation = await appClient.GitHubApps.GetInstallation(123);

```

Expand All @@ -72,7 +72,7 @@ In order to do more than top level calls, a `GitHubApp` needs to authenticate as

``` csharp
// Create an Installation token for Insallation Id 123
var response = await appClient.CreateInstallationToken(123);
var response = await appClient.GitHubApps.CreateInstallationToken(123);

// NOTE - the token will expire in 1 hour!
response.ExpiresAt;
Expand Down