java.lang.Object
ovh.paulem.modrinthapi.Modrinth
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionModrinth(@Nullable String authorization, @Nullable String githubUsername, @NotNull String projectName, @Nullable String version) Modrinth(@Nullable String authorization, @Nullable String githubUsername, @NotNull String projectName, @Nullable String version, @NotNull String mail, @NotNull String mailDomain) Modrinth(@Nullable String authorization, @Nullable String githubUsername, @NotNull String projectName, @Nullable String version, @Nullable String website) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetProject(@NotNull String slugOrId) listVersions(@NotNull String slugOrId) listVersions(@NotNull Project project) searchProject(@Nullable String query, @Nullable String facets, @Nullable String index, @Nullable Integer offset, @Nullable Integer limit)
-
Field Details
-
MODRINTH_API_LINK
-
-
Constructor Details
-
Modrinth
-
Modrinth
-
Modrinth
-
Modrinth
-
-
Method Details
-
searchProject
public SearchProject searchProject(@Nullable @Nullable String query, @Nullable @Nullable String facets, @Nullable @Nullable String index, @Nullable @Nullable Integer offset, @Nullable @Nullable Integer limit) throws IOException, URISyntaxException - Throws:
IOExceptionURISyntaxException
-
getProject
- Throws:
URISyntaxExceptionIOException
-
listVersions
public ListVersions listVersions(@NotNull @NotNull Project project) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
listVersions
public ListVersions listVersions(@NotNull @NotNull String slugOrId) throws URISyntaxException, IOException - Throws:
URISyntaxExceptionIOException
-
getUserAgent
-
getAuthorization
-