Package org.botblock.javabotblockapi.requests
This is the Request module which is used to provide support for POST and GET requests to/from the BotBlock API.
When posting the Guild count is this module a requirement! It depends on the core module.
When posting the Guild count is this module a requirement! It depends on the core module.
Installation
Please replaceAPI_VERSION
with the latest release on Bintray.
Gradle (recommended)
repositories{
maven{ url = 'https://repo.codemc.io/repository/maven-public' }
}
dependencies{
compile group: 'org.botblock', name: 'javabotblockapi-core', version: 'API_VERSION'
compile group: 'org.botblock', name: 'javabotblockapi-request', version: 'API_VERSION'
}
Maven
<repositories>
<repository>
<id>codemc</id>
<name>CodeMC-Nexus</name>
<url>https://repo.codemc.io/repository/maven-public</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.botblock</groupId>
<artifactId>javabotblockapi-core</artifactId>
<version>API_VERSION</version>
</dependency>
<dependency>
<groupId>org.botblock</groupId>
<artifactId>javabotblockapi-request</artifactId>
<version>API_VERSION</version>
</dependency>
</dependencies>
Manual
We do not recommend using jar files directly and instead use one of the above dependency management systems.If you still want to do it manually, or can't use one of the other option, head over to the GitHub releases page or to the Bintray release page and download the jar files from there.
Note that you will not receive any support when using this method.
-
Class Summary Class Description GetBotAction Class used to perform GET actions on the/api/bots/:id
endpoint.GetListAction Class used to perform GET actions on the/api/lists
and/api/lists/:id
endpoints.PostAction Class used to perform POST requests towards the /api/count endpoint of BotBlock. -
Enum Summary Enum Description GetListAction.ApiField Enum containing the different API fields a bot list may have.