View Source Tentacat.App.Installations (Tentacat v2.4.0)

Summary

Functions

Get a specific installation.

List installations accessible with the authenticated app user.

List installations for the authorized app.

List repositories for the authenticated installation.

List repositories in an installation that are accessible with to the authenticated app user.

Get an authorization token for an installation.

Functions

Link to this function

find(client, installation_id)

View Source

Get a specific installation.

Example

Tentacat.App.Installations.find client, 12

More info at: https://developer.github.com/v3/apps/#get-a-single-installation

@spec list_for_user(Tentacat.Client.t()) :: Tentacat.response()

List installations accessible with the authenticated app user.

Example

Tentacat.App.Installations.list_for_user client

More info at: https://developer.github.com/v3/apps/#list-installations-for-user

@spec list_mine(Tentacat.Client.t()) :: Tentacat.response()

List installations for the authorized app.

Example

Tentacat.App.Installations.list_mine client

More info at: https://developer.github.com/v3/apps/#find-installations

Link to this function

list_repositories(client)

View Source
@spec list_repositories(Tentacat.Client.t()) :: Tentacat.response()

List repositories for the authenticated installation.

Example

Tentacat.App.Installations.list_repositories

More info at: https://developer.github.com/v3/apps/installations/#list-repositories

Link to this function

list_repositories_for_user(client, installation_id)

View Source
@spec list_repositories_for_user(Tentacat.Client.t(), integer()) ::
  Tentacat.response()

List repositories in an installation that are accessible with to the authenticated app user.

Example

Tentacat.App.Installations.list_repositories_for_user client, 154

More info at: https://developer.github.com/v3/apps/#list-installations-for-user

Link to this function

token(client, installation_id)

View Source

Get an authorization token for an installation.

Example

Tentacat.App.Installations.token client, 12

More info at: https://developer.github.com/v3/apps/#create-a-new-installation-token