From f1be6755e06d055058e06d9227f9ba0c7b430d28 Mon Sep 17 00:00:00 2001 From: TVke Date: Thu, 22 Mar 2018 10:26:11 +0100 Subject: [PATCH] Replace use of depricated api to the correct one --- doc/security.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/security.md b/doc/security.md index b762e8b9523..200c98176c2 100644 --- a/doc/security.md +++ b/doc/security.md @@ -71,6 +71,6 @@ $jwt = (new Builder) $github->authenticate($jwt, null, Github\Client::AUTH_JWT); -$token = $github->api('integrations')->createInstallationToken($installationId); +$token = $github->api('apps')->createInstallationToken($installationId); $github->authenticate($token['token'], null, Github\Client::AUTH_HTTP_TOKEN); ```