1
- ## Instegrations API
1
+ ## Applications API
2
2
[ Back to the navigation] ( README.md )
3
3
4
- Wraps [ GitHub Integrations API] ( http://developer.github.com/v3/integrations / ) .
4
+ Wraps [ GitHub Applications API] ( http://developer.github.com/v3/apps / ) .
5
5
6
6
### Create a new installation token
7
7
For the installation id 123 use the following:
8
8
``` php
9
- $token = $client->api('integrations ')->createInstallationToken(123);
9
+ $token = $client->api('apps ')->createInstallationToken(123);
10
10
```
11
11
12
12
To create an access token on behalf of a user with id 456 use:
13
13
``` php
14
- $token = $client->api('integrations ')->createInstallationToken(123, 456);
14
+ $token = $client->api('apps ')->createInstallationToken(123, 456);
15
15
```
16
16
17
17
### Find all installations
18
18
19
- Find all installations for the authenticated integration .
19
+ Find all installations for the authenticated application .
20
20
``` php
21
- $installations = $client->api('integrations ')->findInstallations();
21
+ $installations = $client->api('apps ')->findInstallations();
22
22
```
23
23
24
24
### Find installations for a user
@@ -31,7 +31,7 @@ $installations = $client->api('current_user')->installations();
31
31
32
32
List repositories that are accessible to the authenticated installation.
33
33
``` php
34
- $repositories = $client->api('integrations ')->listRepositories(456);
34
+ $repositories = $client->api('apps ')->listRepositories(456);
35
35
```
36
36
37
37
### List repositories for a given installation and user
@@ -43,11 +43,11 @@ $repositories = $client->api('current_user')->repositoriesByInstallation(456);
43
43
### Add repository to installation
44
44
Add a single repository to an installation.
45
45
``` php
46
- $client->api('integrations ')->addRepository(123);
46
+ $client->api('apps ')->addRepository(123);
47
47
```
48
48
49
49
### Remove repository from installation
50
50
Remove a single repository from an installation.
51
51
``` php
52
- $client->api('integrations ')->removeRepository(123);
52
+ $client->api('apps ')->removeRepository(123);
53
53
```
0 commit comments