用户接口

获取api key列表

get
Responses
200

OK

*/*
get
/v1/users/apikeys
GET /v1/users/apikeys HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200

OK

{
  "success": true,
  "data": [
    {
      "id": 1,
      "createdAt": 1,
      "updatedAt": 1,
      "userId": 1,
      "accountId": 1,
      "expiresAt": 1,
      "apiKey": "text",
      "apiSecret": "text",
      "description": "text",
      "netAddress": 1,
      "netmask": 1,
      "canTransfer": true,
      "canTrade": true,
      "canWithdraw": true,
      "enabled": true,
      "ipRestriction": "text"
    }
  ],
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

创建api key

post
Responses
200

OK

*/*
post
/v1/users/apikeys
POST /v1/users/apikeys HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "id": 1,
    "createdAt": 1,
    "updatedAt": 1,
    "userId": 1,
    "accountId": 1,
    "expiresAt": 1,
    "apiKey": "text",
    "apiSecret": "text",
    "description": "text",
    "netAddress": 1,
    "netmask": 1,
    "canTransfer": true,
    "canTrade": true,
    "canWithdraw": true,
    "enabled": true,
    "ipRestriction": "text"
  },
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

获取登陆用户信息

get
Responses
200

OK

*/*
get
/v1/users/me
GET /v1/users/me HTTP/1.1
Host: dex-api.benpay.com
Accept: */*
200

OK

{
  "success": true,
  "data": {
    "id": 1,
    "level": 1,
    "type": "MANAGE",
    "address": "text"
  },
  "error": "text",
  "errorField": "text",
  "errorMessage": "text"
}

Last updated