Oauth

Список всіх публично доступних методів для взаємодії з API.

GET

Get app info

/user/oauth/info

Return information oauth provider and API application

Метод запита

GEThttps://api.stableproxy.com/v2/user/oauth/info

Параметри запиту

ІдентифікаторПравилаПриклад
uidrequiredstring91

Приклади коду

1const baseUrl = "https://api.stableproxy.com/v2";
2const response = await fetch(baseUrl + "/user/oauth/info", {
3 method: "GET",
4 headers: {
5 "Content-Type": "application/json"
6 }
7});
8const data = await response.json();

Приклади відповідей

Success response200application/json
{
  "data": {
    "application": {
      "id": "eb335dd5-c712-csad-da13-3b57f56184af",
      "name": "VPN",
      "description": "VPN Extension",
      "image_url": "https://miro.medium.com/v2/resize:fit:512/1*kvM_srFh_taGCwfT_fJ2Ig.png",
      "domains": [
        "api.stableproxy.com"
      ],
      "is_active": true,
      "created_at": "2024-05-01T08:02:02.000000Z",
      "updated_at": "2024-05-01T08:02:02.000000Z"
    },
    "contest": {
      "uid": "59771e20-97ad-as23-das2-fa9917386308",
      "abilities": [
        "packages.proxies",
        "user.read",
        "packages.read",
        "user-settings.update",
        "packages.delete"
      ],
      "application_id": "eb335dd5-c712-495d-82ce-3b57f56184af",
      "created_at": "2024-05-01T18:31:00.382159Z",
      "target_auth_url": "http://localhost:3000/uk/oauth/process?test=1"
    }
  },
  "good": true,
  "timestamp": 1714588279,
  "cause": {
    "type": "anonymous",
    "user_id": -1
  }
}