1- ## Instegrations API
1+ ## Applications API
22[ Back to the navigation] ( README.md )
33
4- Wraps [ GitHub Integrations API] ( http://developer.github.com/v3/integrations / ) .
4+ Wraps [ GitHub Applications API] ( http://developer.github.com/v3/apps / ) .
55
66### Create a new installation token
77For the installation id 123 use the following:
88``` php
9- $token = $client->api('integrations ')->createInstallationToken(123);
9+ $token = $client->api('apps ')->createInstallationToken(123);
1010```
1111
1212To create an access token on behalf of a user with id 456 use:
1313``` php
14- $token = $client->api('integrations ')->createInstallationToken(123, 456);
14+ $token = $client->api('apps ')->createInstallationToken(123, 456);
1515```
1616
1717### Find all installations
1818
19- Find all installations for the authenticated integration .
19+ Find all installations for the authenticated application .
2020``` php
21- $installations = $client->api('integrations ')->findInstallations();
21+ $installations = $client->api('apps ')->findInstallations();
2222```
2323
2424### Find installations for a user
@@ -31,7 +31,7 @@ $installations = $client->api('current_user')->installations();
3131
3232List repositories that are accessible to the authenticated installation.
3333``` php
34- $repositories = $client->api('integrations ')->listRepositories(456);
34+ $repositories = $client->api('apps ')->listRepositories(456);
3535```
3636
3737### List repositories for a given installation and user
@@ -43,11 +43,11 @@ $repositories = $client->api('current_user')->repositoriesByInstallation(456);
4343### Add repository to installation
4444Add a single repository to an installation.
4545``` php
46- $client->api('integrations ')->addRepository(123);
46+ $client->api('apps ')->addRepository(123);
4747```
4848
4949### Remove repository from installation
5050Remove a single repository from an installation.
5151``` php
52- $client->api('integrations ')->removeRepository(123);
52+ $client->api('apps ')->removeRepository(123);
5353```
0 commit comments