Skip to content

Commit fb92df9

Browse files
authored
Update docs
1 parent 78a7422 commit fb92df9

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
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
77
For 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

1212
To 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

3232
List 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
4444
Add 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
5050
Remove a single repository from an installation.
5151
```php
52-
$client->api('integrations')->removeRepository(123);
52+
$client->api('apps')->removeRepository(123);
5353
```

0 commit comments

Comments
 (0)