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
170482639501 | No api key provided! Create it using: sl.api
02 | Incorrect API key!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());
curl -X POST "https://api.skylineeu.xyz/getPremium" -H "Authorization: YOUR_API_KEY"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());
import requests
headers = {'Authorization': 'YOUR_API_KEY'}
response = requests.post('https://api.skylineeu.xyz/getPremium', headers=headers)
print(response.text)
Last updated