What do I have to do as a server owner?
Just download the jar and drop it in the plugins folder. Done.
Add this jar as dependency in maven/lib in your IDA/eclipse project.
Example usage of the api:
Code (Text):
OkHttpClient client = new OkHttpClient();
RequestBody body = RequestBody.create(MediaType.get("application/json; charset=utf-8"), text);
Request request = new Request.Builder()
.url(url)
.post(body)
.build();
try (Response response = client.newCall(request).execute()) {
return response.body().string();
} catch (IOException e) {
e.printStackTrace();
}
Here is a quick guide of OkHttp API:
https://square.github.io/okhttp/
Note I'm not the developper of okhttp or okio, this is only a bundled jar to help developers.