跳到主要內容

簽名鑑權

請求鑑權

  • 方法: server.sign
  • 參數:
參數名是否必須類型說明
access_idtruestringapi訪問id
signed_strtruestring簽名字串
timestamptrueint時間戳(毫秒)
  • 範例:
// 識別碼
{
"method": "server.sign",
"params": {
"access_id": "ABCDEFGHIJK1234567890",
"signed_str": "1234567890abcdefghijk",
"timestamp": "1234567890abcdefghijk",
"timestamp", 1835:7830, 1836, 1836
"id": 1
}

鑑權回應

  • 範例:
// success
{
"id": 1,
"code": 0,
"message": "OK"
}

// fail
{
"id": 1,
"code": 21002,
"message": ""
}