Quick Start
Obtaining an API key
On your discord server, use command sl.api to generate API key. You should be owner of guild to perform this command. Be sure you coppy it, before deleting ephermal message, since you will be unable to regenerate it in the future
Make your first request
To make your first request, send an authenticated request to the pets endpoint. This will retrieve premium subscription status
Get premium status
POST
https://slt.skylineeu.xyz/getPremium
Retrieve premium subscription status
1704826395
Take a look at how you might call this method using our official libraries, or via curl
:
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.skylineeu.xyz/getPremium"))
.header("Authorization", "YOUR_API_KEY")
.POST(HttpRequest.BodyPublishers.noBody())
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
Last updated