From aad6ea7ec266340ba56e7f0019ea4427c3215c99 Mon Sep 17 00:00:00 2001 From: Christophe Hurpeau Date: Tue, 13 Apr 2021 22:37:45 +0200 Subject: [PATCH] fix(README): missing `.rest` in app example (#26) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 190e9cb44c..c30c2b42f1 100644 --- a/README.md +++ b/README.md @@ -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,