Skip to content
Markdown

Profile ​

INFO

Каждый ответ приходит в общем конверте — code, message, messages, status_code, time — а полезная нагрузка лежит в data. Таблицы ниже описывают содержимое data.

GET /profile/getMe ​

Get profile

Нужное разрешение: нет — закрыто для приложения, объявившего разрешения · как работают разрешения

Пример запроса

bash
curl -X GET 'https://api.bito.uz/integration-api/integration/api/v2/profile/getMe' \
  -H "api-key: $BITO_API_KEY"
js
const res = await fetch('https://api.bito.uz/integration-api/integration/api/v2/profile/getMe', {
  method: 'GET',
  headers: { 'api-key': process.env.BITO_API_KEY },
})
const { code, data } = await res.json()
python
import os
import requests

res = requests.request(
    "GET",
    "https://api.bito.uz/integration-api/integration/api/v2/profile/getMe",
    headers={"api-key": os.environ["BITO_API_KEY"]},
)
print(res.json())
php
<?php
$ch = curl_init('https://api.bito.uz/integration-api/integration/api/v2/profile/getMe');
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => 'GET',
    CURLOPT_HTTPHEADER => ['api-key: ' . getenv('BITO_API_KEY')],
    CURLOPT_RETURNTRANSFER => true,
]);
$response = json_decode(curl_exec($ch), true);

Тело запроса

Тело запроса не требуется.

Ответ

ПолеТипОписание
idstringUser ID
user_namestringUser name
is_demobooleanUser demo status
statusstringUser status. Допустимые значения: active, blocked, warning. По умолчанию: "active"
expiration_datestring (date-time)User expiration date
license_countnumberNumber of licenses
json
{
  "code": 0,
  "message": "Success",
  "status_code": 200,
  "data": {
    "id": "string",
    "user_name": "string",
    "is_demo": false,
    "status": "active",
    "expiration_date": "2025-05-01T12:00:00Z",
    "license_count": 0
  },
  "time": "2025-05-01T12:00:00Z"
}

Эта страница сгенерирована из спецификации OpenAPI.

Bito 2.0 Integration API