Skip to content

Commit

Permalink
fix(README): missing .rest in app example (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophehurpeau authored Apr 13, 2021
1 parent 536088b commit aad6ea7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,11 @@ const octokit = new Octokit({
// authenticates as app based on request URLs
const {
data: { slug },
} = await octokit.apps.getAuthenticated();
} = await octokit.rest.apps.getAuthenticated();

// creates an installation access token as needed
// assumes that installationId 123 belongs to @octocat, otherwise the request will fail
await octokit.issues.create({
await octokit.rest.issues.create({
owner: "octocat",
repo: "hello-world",
title: "Hello world from " + slug,
Expand Down

0 comments on commit aad6ea7

Please sign in to comment.