Features
Lista wszystkich publicznie dostępnych metod interakcji z API.
GET
Get package features -/package/features/{id}
Metoda zapytania
GEThttps://api.stableproxy.com/v2/package/features/{id}
Parametry zapytania
| Identyfikator | Regulamin | Przykład |
|---|---|---|
| id | 1required | 56 |
Przykłady kodu
JavaScript
async function getPackageFeatures() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/package/features/{id}'
.replace("{id}", 56), {
method: 'GET',
headers: {
'Authorization': 'API-Token [YOUR TOKEN]',
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}Przykłady odpowiedzi
Success response
PUT
Toggle Features -/package/features/{id}
Metoda zapytania
PUThttps://api.stableproxy.com/v2/package/features/{id}
Parametry zapytania
| Identyfikator | Regulamin | Przykład |
|---|---|---|
| id | 1required | 56 |
Przykłady kodu
JavaScript
async function putPackageFeatures() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/package/features/{id}'
.replace("{id}", 56), {
method: 'PUT',
headers: {
'Authorization': 'API-Token [YOUR TOKEN]',
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}