get_credentials

get_credentials只读扩展
获取凭证

Call via POST http://127.0.0.1:3000/get_credentials (JSON params as the body) or WebSocket.

Parameters

Param Type Required Default Description
domain string "qun.qq.com"

Returns (data)

{ cookies, token, csrf_token }:Cookie 字符串与 CSRF 令牌(token 与 csrf_token 同值)。

Every response is wrapped in the standard envelope: { "status": "ok", "retcode": 0, "data": ... }. The table below describes data.

Field Type Required Description
cookies string 该域名的 Cookie 字符串
token integer CSRF 令牌(bkn)
csrf_token integer CSRF 令牌(同 token)
Raw JSON Schema
{
  "type": "object",
  "properties": {
    "cookies": {
      "type": "string",
      "description": "该域名的 Cookie 字符串"
    },
    "token": {
      "type": "integer",
      "description": "CSRF 令牌(bkn)"
    },
    "csrf_token": {
      "type": "integer",
      "description": "CSRF 令牌(同 token)"
    }
  },
  "required": [
    "cookies",
    "token",
    "csrf_token"
  ]
}

Examples

curl
Python
JavaScript
Go
SnowLuma SDK
curl -X POST http://127.0.0.1:3000/get_credentials \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <access-token>' \
  -d '{"domain":"qun.qq.com"}'
Using an AI assistant?

MCP-capable clients can discover and call this action directly — no hand-written HTTP. See MCP.