Status telefonu
Lista wszystkich publicznie dostępnych metod interakcji z API.
GET
Uzyskiwanie statusu telefonu -/user/phone-status
Metoda zapytania
GEThttp://apilocal.stableproxy.com/v2/user/phone-status
Przykłady kodu
JavaScript
1async function getUserPhoneStatus() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/user/phone-status', {
4 method: 'GET',
5 headers: {
6 'Authorization': 'API-Token [YOUR TOKEN]',
7 'Content-Type': 'application/json'
8 }
9 }
10 );
11
12 const res = await req.json();
13}
Przykłady odpowiedzi
Success response
GET
Uzyskaj dozwolone kraje -/phone/supported-countries
Metoda zapytania
GEThttp://apilocal.stableproxy.com/v2/phone/supported-countries
Przykłady kodu
JavaScript
1async function getPhoneSupportedCountries() {
2 const baseUrl = 'http://apilocal.stableproxy.com/v2';
3 const req = await fetch(baseUrl + '/phone/supported-countries', {
4 method: 'GET',
5 headers: {
6 'Content-Type': 'application/json'
7 }
8 }
9 );
10
11 const res = await req.json();
12}