Skip to content

Commit aad6ea7

Browse files
fix(README): missing .rest in app example (#26)
1 parent 536088b commit aad6ea7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,11 @@ const octokit = new Octokit({
332332
// authenticates as app based on request URLs
333333
const {
334334
data: { slug },
335-
} = await octokit.apps.getAuthenticated();
335+
} = await octokit.rest.apps.getAuthenticated();
336336

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

0 commit comments

Comments
 (0)