Skip to content

Commit 9680038

Browse files
committed
Rename installations endpoint to integrations as per APIv3 docs
1 parent e77f21a commit 9680038

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Github/Api/Installations.php renamed to lib/Github/Api/Integrations.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
namespace Github\Api;
44

55
/**
6-
* @link https://developer.github.com/early-access/integrations/authentication/
6+
* @link https://developer.github.com/v3/integrations/
77
* @author Nils Adermann <[email protected]>
88
*/
9-
class Installations extends AbstractApi
9+
class Integrations extends AbstractApi
1010
{
1111
/**
1212
* Create an access token for an installation
@@ -17,11 +17,11 @@ class Installations extends AbstractApi
1717
*
1818
* @return array token and token metadata
1919
*/
20-
public function createAccessToken($installationId, $userId = null)
20+
public function createInstallationToken($installationId, $userId = null)
2121
{
2222
$parameters = array();
2323
if ($userId) {
24-
$paramters['user_id'] = $userId;
24+
$parameters['user_id'] = $userId;
2525
}
2626

2727
return $this->post('/installations/'.rawurlencode($installationId).'/access_tokens', $parameters);

0 commit comments

Comments
 (0)