Points
Retrieving information about your staff member is easy, and usefull for any type of integration
Last updated
Retrieving information about your staff member is easy, and usefull for any type of integration
Last updated
POST
https://api.skylineeu.xyz/getPoints
Name | Type | Description |
---|---|---|
100
01 | No api key provided! Create it using: sl.api
02 | Incorrect API key!
04 | Param 'memberID' is not provided!
05 | Param 'memberID' should contain only integers!
03 | Error while retrieving guild using this API key. Is SkyTickets still on guild?
curl -X POST "https://api.skylineeu.xyz/getPoints" -H "Authorization: YOUR_API_KEY" -d "memberID=USER_DISCORD_ID"
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
public class SLTAPI {
public static void main(String[] args) throws Exception {
var client = HttpClient.newHttpClient();
String memberID = "USER_DISCORD_ID";
String form = "memberID=" + URLEncoder.encode(memberID, StandardCharsets.UTF_8);
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.skylineeu.xyz/getPoints"))
.header("Content-Type", "application/x-www-form-urlencoded")
.header("Authorization", "YOUR_API_KEY")
.POST(HttpRequest.BodyPublishers.ofString(form))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
int statusCode = response.statusCode();
String responseBody = response.body();
System.out.println("Response status: " + statusCode);
System.out.println("Response body: " + responseBody);
}
}
npm install axios
const axios = require('axios');
const querystring = require('querystring');
const data = querystring.stringify({
memberID: 'USER_DISCORD_ID'
});
const config = {
method: 'post',
url: 'https://api.skylineeu.xyz/getPoints',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'YOUR_API_KEY'
},
data: data
};
axios(config)
.then(function (response) {
console.log("Response status:", response.status);
console.log("Response body:", response.data);
})
.catch(function (error) {
console.error(error);
});
pip install requests
import requests
url = 'https://api.skylineeu.xyz/getPoints'
data = {
'memberID': 'USER_DISCORD_ID'
}
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'YOUR_API_KEY'
}
response = requests.post(url, data=data, headers=headers)
print("Response status:", response.status_code)
print("Response body:", response.text)
Replace YOUR_API_KEY with generated API key
Replace USER_DISCORD_ID with real ID of member
POST
https://api.skylineeu.xyz/setPoints
Name | Type | Description |
---|---|---|
Successfully set '{memberName}' points to '{newValue}'
01 | No api key provided! Create it using: sl.api
02 | Incorrect API key!
04 | Param 'memberID' is not provided!
05 | Param 'memberID' should contain only integers!
06 | Param 'amount' is not provided!
07 | Param 'amount' should be integer!
08 | Member not found on the guild
03 | Error while retrieving guild using this API key. Is SkyTickets still on guild?
curl -X POST "https://api.skylineeu.xyz/setPoints" -H "Authorization: YOUR_API_KEY" -d "memberID=USER_DISCORD_ID&amount=POINTS_AMOUNT"
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
public class SLTAPI {
public static void main(String[] args) throws Exception {
var client = HttpClient.newHttpClient();
String amount = "POINTS_AMOUNT";
String memberID = "USER_DISCORD_ID";
String form = "memberID=" + URLEncoder.encode(memberID, StandardCharsets.UTF_8) +
"&amount=" + URLEncoder.encode(amount, StandardCharsets.UTF_8);
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api.skylineeu.xyz/setPoints"))
.header("Content-Type", "application/x-www-form-urlencoded")
.header("Authorization", "YOUR_API_KEY")
.POST(HttpRequest.BodyPublishers.ofString(form))
.build();
HttpResponse<String> response = client.send(request, HttpResponse.BodyHandlers.ofString());
int statusCode = response.statusCode();
String responseBody = response.body();
System.out.println("Response status: " + statusCode);
System.out.println("Response body: " + responseBody);
}
}
npm install axios
const axios = require('axios');
const querystring = require('querystring');
const data = querystring.stringify({
memberID: 'USER_DISCORD_ID',
amount: 'POINTS_AMOUNT'
});
const config = {
method: 'post',
url: 'https://api.skylineeu.xyz/setPoints',
headers: {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'YOUR_API_KEY'
},
data: data
};
axios(config)
.then(function (response) {
console.log("Response status:", response.status);
console.log("Response body:", response.data);
})
.catch(function (error) {
console.error(error);
});
pip install requests
import requests
url = 'https://api.skylineeu.xyz/setPoints'
data = {
'memberID': 'USER_DISCORD_ID',
'amount': 'POINTS_AMOUNT'
}
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Authorization': 'YOUR_API_KEY'
}
response = requests.post(url, data=data, headers=headers)
print("Response status:", response.status_code)
print("Response body:", response.text)
Replace YOUR_API_KEY with generated API key
Replace USER_DISCORD_ID with real ID of member
Replace POINTS_AMOUNT with amount of points you want to set
❗ Please OPTIMIZE your code, to use LESS AS POSSIBLE requests to API, this will prevent us setting limits for requests.
memberID*
String
Id of member
memberID*
Long
Id of member
amount*
Integer
Amount of points