Truy vấn thông tin tài khoản

Truy vấn thông tin tài khoản

GET http://127.0.0.1:12368/me

Examples

  • Curl example

curl http://127.0.0.1:12368/me

  • Javascript example

const hidemyacc = new Hidemyacc();
const user = await hidemyacc.me();

Success response

Success response - Success 200

NameTypeDescription

data

Object

Thông tin user

data.affiliate

Number

Tỷ lệ % dành cho đối tác tham gia affiliate

data.createdAt

Date

Ngày tạo tài khoản

data.email

email

Địa chỉ email

data.expireDate

Date

Ngày hết hạn

data.id

String

Id tài khoản

data.lockEnabled

Boolean

Tài khoản có bị khóa hay không?

data.plan

Object

Thông tin gói đăng ký mà tài khoản đang dùng

data.profiles

Number

Số lượng profile hiện tại của người dùng

data.plan.maxProfiles

Number

Số lượng profile mà gói hỗ trợ

data.plan.name

Number

Tên gói

Success response example

Success response example - Success-Example

HTTP/1.1 200 OK
{
    "code": 1,
    "data":
    {
        "affiliate": 10,
        "createdAt": "2021-03-11T10:47:58.666Z",
        "email": "test@hidemyacc.com",
        "expireDate": "2022-11-03T07:24:58.408Z",
        "id": "613c895e92097a1b0ea30b7b",
        "lockEnabled": false,
        "plan":
        {
            "maxProfiles": 1000,
            "name": "Business"
        },
        "profiles": 25
    }
}

Error response

Error response - Error 4xx

NameTypeDescription

401

Chưa đăng nhập vào tài khoả

Error response example

Error response example - Response (example):

HTTP/1.1 401 Not Authenticated
{
  "code": 0,
  "message": "Unauthorized",
  "data": {}
}

Last updated