Package de.coho04.githubapi
Klasse Github
java.lang.Object
de.coho04.githubapi.bases.GHBase
de.coho04.githubapi.Github
- Alle implementierten Schnittstellen:
HttpRequestInterface,JSONHelper
This class represents the main entry point for interacting with the GitHub API.
It provides methods for fetching data about users, organizations, advisories, and gitignore templates.
-
Verschachtelte Klassen - Übersicht
Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen de.coho04.githubapi.interfaces.JSONHelper
JSONHelper.JSONToObject<T> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfindOrganisationByName(String name) Finds an organization by its name.findUserByName(String name) Finds a user by their username.getGitignoreTemplate(String name) Gets a gitignore template by its name.Gets a global advisory by its ID.static LoggerLists all user advisories.getToken()Returns the GitHub token.Lists all gitignore templates.Lists all global advisories.Von Klasse geerbte Methoden de.coho04.githubapi.bases.GHBase
fetchArrayData, fetchArrayData, fetchPaginatedData, fetchPaginatedData, fetchPaginatedData, getBaseUrl, toJSONObjectVon Klasse geerbte Methoden java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.HttpRequestInterface
extractNextPageUrl, sendDeleteRequest, sendDeleteRequestWithResponseCode, sendGetRequest, sendGetRequestWithLinkHeader, sendGetRequestWithResponseCode, sendPatchRequest, sendPostRequest, sendPutRequestVon Schnittstelle geerbte Methoden de.coho04.githubapi.interfaces.JSONHelper
getArrayOrNull, getBooleanOrNull, getIntOrNull, getJSONArrayToStringList, getJSONObjectOrNull, getLocalDateOrNull, getLongOrNull, getStringOrNull
-
Konstruktordetails
-
Github
Constructs a new GitHub instance with the provided username and token.- Parameter:
token- the GitHub token
-
-
Methodendetails
-
findOrganisationByName
Finds an organization by its name.- Parameter:
name- the name of the organization- Gibt zurück:
- the organization
-
findUserByName
Finds a user by their username.- Parameter:
name- the username of the user- Gibt zurück:
- the user
-
getToken
Returns the GitHub token.- Gibt zurück:
- the GitHub token
-
listGlobalAdvisories
Lists all global advisories.- Gibt zurück:
- a list of all global advisories
-
getGlobalAdvisories
Gets a global advisory by its ID.- Parameter:
id- the ID of the advisory- Gibt zurück:
- the advisory
-
listGitignoreTemplates
Lists all gitignore templates.- Gibt zurück:
- a list of all gitignore templates
-
getGitignoreTemplate
Gets a gitignore template by its name.- Parameter:
name- the name of the template- Gibt zurück:
- the gitignore template
-
getSelfUser
Lists all user advisories.- Gibt zurück:
- a list of all user advisories
-
getLogger
-