コンテンツにスキップ

session.verify_session_token

セッショントークンが現在有効かどうかを確認します。

パラメータ

  • token: string -- セッショントークン。

戻り値

  • active: boolean -- セッショントークンの有効状態。
    • true -- 有効。
    • false -- 無効。

実行例

リクエストデータ

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "session.verify_session_token",
  "params": {
    "token": "00890640-ec03-4663-82ce-456ea993807d"
  }
}

リクエスト実行

curl -H "Content-type: application/json" \
     -H "APIKey: 9c6f4574-89d1-4e3c-8af7-2549dc217fcf" \
     -H "Secret: aef8caingiej1ieNieJ3Phool4maeGohcies" \
     -X POST -d "@request.json" \
     https://localhost/api/v2/session/jsonrpc

レスポンス

{
  "result": {
    "active": true
  },
  "id": 1,
  "jsonrpc": "2.0"
}