java.lang.Object
org.kohsuke.github.GHObject
org.kohsuke.github.GHApp
- Direct Known Subclasses:
GHAppFromManifest
A Github App.
- Author:
- Paulo Miguel Almeida
- See Also:
-
Field Summary
Fields inherited from class org.kohsuke.github.GHObject
responseHeaderFields
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets description.Gets events.Gets external url.Gets the html url.getInstallationById
(long id) Obtain an installation associated with this app.Obtain an organization installation associated with this app.getInstallationByRepository
(String ownerName, String repositoryName) Obtain an repository installation associated with this app.getInstallationByUser
(String name) Obtain a user installation associated with this app.long
Gets installations count.getName()
Gets name.getOwner()
Gets owner.Gets permissions.getSlug()
Gets the slug name of the GitHub app.Obtains all the installations associated with this app.listInstallations
(Date since) Obtains all the installations associated with this app since a given date.Methods inherited from class org.kohsuke.github.GHObject
getCreatedAt, getId, getNodeId, getResponseHeaderFields, getUpdatedAt, getUrl, setResponseHeaderFields, toString
-
Constructor Details
-
GHApp
public GHApp()Create default GHApp instance
-
-
Method Details
-
getOwner
Gets owner.- Returns:
- the owner
-
getName
Gets name.- Returns:
- the name
-
getSlug
Gets the slug name of the GitHub app.- Returns:
- the slug name of the GitHub app
-
getDescription
Gets description.- Returns:
- the description
-
getExternalUrl
Gets external url.- Returns:
- the external url
-
getEvents
Gets events.- Returns:
- the events
-
getInstallationsCount
public long getInstallationsCount()Gets installations count.- Returns:
- the installations count
-
getHtmlUrl
Gets the html url.- Returns:
- the html url
-
getPermissions
Gets permissions.- Returns:
- the permissions
-
listInstallations
Obtains all the installations associated with this app.You must use a JWT to access this endpoint.
- Returns:
- a list of App installations
- See Also:
-
listInstallations
Obtains all the installations associated with this app since a given date.You must use a JWT to access this endpoint.
- Parameters:
since
- - Allows users to get installations that have been updated since a given date.- Returns:
- a list of App installations since a given time.
- See Also:
-
getInstallationById
Obtain an installation associated with this app.You must use a JWT to access this endpoint.
- Parameters:
id
- Installation Id- Returns:
- a GHAppInstallation
- Throws:
IOException
- on error- See Also:
-
getInstallationByOrganization
Obtain an organization installation associated with this app.You must use a JWT to access this endpoint.
- Parameters:
name
- Organization name- Returns:
- a GHAppInstallation
- Throws:
IOException
- on error- See Also:
-
getInstallationByRepository
public GHAppInstallation getInstallationByRepository(String ownerName, String repositoryName) throws IOException Obtain an repository installation associated with this app.You must use a JWT to access this endpoint.
- Parameters:
ownerName
- Organization or user namerepositoryName
- Repository name- Returns:
- a GHAppInstallation
- Throws:
IOException
- on error- See Also:
-
getInstallationByUser
Obtain a user installation associated with this app.You must use a JWT to access this endpoint.
- Parameters:
name
- user name- Returns:
- a GHAppInstallation
- Throws:
IOException
- on error- See Also:
-