Package
Lista wszystkich publicznie dostępnych metod interakcji z API.
GET
Get package proxy locations service -/package/proxy-locations/{id}/service/{service}
Metoda zapytania
GEThttps://api.stableproxy.com/v2/package/proxy-locations/{id}/service/{service}
Parametry zapytania
| Identyfikator | Regulamin | Przykład |
|---|---|---|
| token | requiredstring | 66 |
| id | 1required | 67 |
| service | 1required | null |
Przykłady kodu
JavaScript
async function getPackageProxyLocationsService() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/package/proxy-locations/{id}/service/{service}'
.replace("{id}", 67)
.replace("{service}", null) + '?' + Object.entries({
"token": 66
}).map(([key, value]) => key + "=" + value).join('&'), {
method: 'GET',
headers: {
'Authorization': 'API-Token [YOUR TOKEN]',
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}