Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 1.06 KB

integrations.md

File metadata and controls

41 lines (32 loc) · 1.06 KB

Instegrations API

Back to the navigation

Wraps GitHub Integrations API.

Create a new installation token

For the installation id 123 use the following:

$token = $client->api('integrations')->createInstallationToken(123);

To create an access token on behalf of a user with id 456 use:

$token = $client->api('integrations')->createInstallationToken(123, 456);

Find all installations

Find all installations for the authenticated integration.

Installations = $client->api('integrations')->findInstallations();

List repositories

List repositories that are accessible to the authenticated installation.

$repositories = $client->api('integrations')->listRepositories(456);

Add repository to installation

Add a single repository to an installation.

$client->api('integrations')->addRepository(123);

Remove repository from installation

Remove a single repository from an installation.

$client->api('integrations')->removeRepository(123);