You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaBotBlockAPI is a continued and updated Java Wrapper for [BotBlock], a website that makes it possible to update guild counts on multiple lists with one API.
37
31
This wrapper is a fork of [BotBlock4J] and was updated and improved to make it as userfriendly as possible.
38
32
@@ -67,180 +61,9 @@ For maven use this code snippet:
67
61
```
68
62
69
63
# Usage
70
-
To use the Wrapper you have to follow these steps.
71
-
72
-
## Notes
73
-
In the below examples do I use a JDA instance called `jda`.
74
-
This will also work with ShardManager.
75
-
76
-
## POST methods
77
-
You can post you guild counts to the different Botlists using the BotBlock API.
78
-
79
-
### Creating an instance of BotBlockAPI
80
-
For posting your guild counts towards the BotBlock API you first need to create an instance of the BotBlockAPI class.
81
-
To do this it's recommended to use `BotBlockAPI.Builder()`.
<tdclass="colFirst"><ahref="org/botblock/javabotblockapi/requests/GetAction.html" title="class in org.botblock.javabotblockapi.requests">GetAction</a></td>
134
-
<thclass="colLast" scope="row">
135
-
<divclass="block">Class to perform GET actions with.</div>
134
+
<thclass="colLast" scope="row">Deprecated.
135
+
<divclass="deprecationComment">Use <ahref="org/botblock/javabotblockapi/requests/GetBotAction.html" title="class in org.botblock.javabotblockapi.requests"><code>GetBotAction</code></a> for Bot related and
136
+
<ahref="org/botblock/javabotblockapi/requests/GetListAction.html" title="class in org.botblock.javabotblockapi.requests"><code>GetListAction</code></a> for List related actions.</div>
136
137
</th>
137
138
</tr>
138
139
<trid="i4" class="altColor">
140
+
<tdclass="colFirst"><ahref="org/botblock/javabotblockapi/requests/GetBotAction.html" title="class in org.botblock.javabotblockapi.requests">GetBotAction</a></td>
141
+
<thclass="colLast" scope="row">
142
+
<divclass="block">Class used to perform GET actions on the <ahref="https://botblock.org/api/docs#bots" target="_blank"><code>/bots/:id</code> endpoint</a>.</div>
143
+
</th>
144
+
</tr>
145
+
<trid="i5" class="rowColor">
146
+
<tdclass="colFirst"><ahref="org/botblock/javabotblockapi/requests/GetListAction.html" title="class in org.botblock.javabotblockapi.requests">GetListAction</a></td>
147
+
<thclass="colLast" scope="row">
148
+
<divclass="block">Class used to perform GET actions on the <ahref="https://botblock.org/api/docs#lists" target="_blank"><code>/lists</code> endpoint</a>.</div>
149
+
</th>
150
+
</tr>
151
+
<trid="i6" class="altColor">
152
+
<tdclass="colFirst"><ahref="org/botblock/javabotblockapi/requests/GetListAction.ApiField.html" title="enum in org.botblock.javabotblockapi.requests">GetListAction.ApiField</a></td>
153
+
<thclass="colLast" scope="row">
154
+
<divclass="block">Enum containing the different API fields a bot list may have.</div>
155
+
</th>
156
+
</tr>
157
+
<trid="i7" class="rowColor">
139
158
<tdclass="colFirst"><ahref="org/botblock/javabotblockapi/requests/PostAction.html" title="class in org.botblock.javabotblockapi.requests">PostAction</a></td>
140
159
<thclass="colLast" scope="row">
141
160
<divclass="block">Class to perform post actions with.</div>
142
161
</th>
143
162
</tr>
144
-
<trid="i5" class="rowColor">
163
+
<trid="i8" class="altColor">
145
164
<tdclass="colFirst"><ahref="org/botblock/javabotblockapi/exceptions/RatelimitedException.html" title="class in org.botblock.javabotblockapi.exceptions">RatelimitedException</a></td>
146
165
<thclass="colLast" scope="row">
147
166
<divclass="block">Indicates that the Java-Wrapper (Bot) was rate-limited by BotBlock.org (Received error code 429)
148
167
<br>The returned error message contains the route, Bot ID, IP and delay for when rate limit is removed.</div>
149
168
</th>
150
169
</tr>
151
-
<trid="i6" class="altColor">
170
+
<trid="i9" class="rowColor">
152
171
<tdclass="colFirst"><ahref="org/botblock/javabotblockapi/Site.html" title="enum in org.botblock.javabotblockapi">Site</a></td>
153
172
<thclass="colLast" scope="row">
154
173
<divclass="block">Enum class containing all sites currently supported by BotBlock.org.</div>
<li><ahref="org/botblock/javabotblockapi/BotBlockAPI.Builder.html" title="class in org.botblock.javabotblockapi">BotBlockAPI.Builder</a></li>
27
27
<li><ahref="org/botblock/javabotblockapi/annotations/DeprecatedSince.html" title="annotation in org.botblock.javabotblockapi.annotations">DeprecatedSince</a></li>
28
28
<li><ahref="org/botblock/javabotblockapi/requests/GetAction.html" title="class in org.botblock.javabotblockapi.requests">GetAction</a></li>
29
+
<li><ahref="org/botblock/javabotblockapi/requests/GetBotAction.html" title="class in org.botblock.javabotblockapi.requests">GetBotAction</a></li>
30
+
<li><ahref="org/botblock/javabotblockapi/requests/GetListAction.html" title="class in org.botblock.javabotblockapi.requests">GetListAction</a></li>
31
+
<li><ahref="org/botblock/javabotblockapi/requests/GetListAction.ApiField.html" title="enum in org.botblock.javabotblockapi.requests">GetListAction.ApiField</a></li>
29
32
<li><ahref="org/botblock/javabotblockapi/requests/PostAction.html" title="class in org.botblock.javabotblockapi.requests">PostAction</a></li>
30
33
<li><ahref="org/botblock/javabotblockapi/exceptions/RatelimitedException.html" title="class in org.botblock.javabotblockapi.exceptions">RatelimitedException</a></li>
31
34
<li><ahref="org/botblock/javabotblockapi/Site.html" title="enum in org.botblock.javabotblockapi">Site</a></li>
0 commit comments