Package com.spotify.github.v3.clients
Class GithubAppClient
- java.lang.Object
-
- com.spotify.github.v3.clients.GithubAppClient
-
public class GithubAppClient extends Object
Apps API client
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<AccessToken>
getAccessToken(Integer installationId)
Authenticates as an installationCompletableFuture<Installation>
getInstallation()
Get Installation of a repoCompletableFuture<List<Installation>>
getInstallations()
List Installations of an app.CompletableFuture<InstallationRepositoriesResponse>
listAccessibleRepositories(int installationId)
Lists the repositories that an app installation can access.
-
-
-
Method Detail
-
getInstallations
public CompletableFuture<List<Installation>> getInstallations()
List Installations of an app.- Returns:
- a list of Installation
-
getInstallation
public CompletableFuture<Installation> getInstallation()
Get Installation of a repo- Returns:
- a list of Installation
-
getAccessToken
public CompletableFuture<AccessToken> getAccessToken(Integer installationId)
Authenticates as an installation- Returns:
- an Installation Token
-
listAccessibleRepositories
public CompletableFuture<InstallationRepositoriesResponse> listAccessibleRepositories(int installationId)
Lists the repositories that an app installation can access.see https://docs.github.com/en/free-pro-team@latest/rest/reference/apps#list-repositories-accessible-to-the-app-installation
-
-