Phone status
Lista wszystkich publicznie dostępnych metod interakcji z API.
GET
Get phone status -/user/phone-status
Metoda zapytania
GEThttps://api.stableproxy.com/v2/user/phone-status
Przykłady kodu
JavaScript
async function getUserPhoneStatus() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/user/phone-status', {
method: 'GET',
headers: {
'Authorization': 'API-Token [YOUR TOKEN]',
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}Przykłady odpowiedzi
Success response
GET
Get allowed countries -/phone/supported-countries
Metoda zapytania
GEThttps://api.stableproxy.com/v2/phone/supported-countries
Przykłady kodu
JavaScript
async function getPhoneSupportedCountries() {
const baseUrl = 'https://api.stableproxy.com/v2';
const req = await fetch(baseUrl + '/phone/supported-countries', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
}
);
const res = await req.json();
}