This is a translation of the original English documentation page. Help us make it better.

token.delete

説明

object token.delete(array tokenids)

このメソッドでは、トークンを削除できます。

他のユーザーのトークンを管理できるのはSuper adminユーザータイプのみです。

パラメータ

(array) 削除するトークンのID

戻り値

(object) tokenidsプロパティの下にある削除されたトークンのIDを含むオブジェクトを返します。

複数のトークンを削除

二個のトークンを削除

Request:

{
           "jsonrpc": "2.0",
           "method": "token.delete",
           "params": [
               "188",
               "192"
           ],
           "auth": "3a57200802b24cda67c4e4010b50c065",
           "id": 1
       }

Response:

{
           "jsonrpc": "2.0",
           "result": {
               "tokenids": [
                   "188",
                   "192"
               ]
           },
           "id": 1
       }

ソース

CToken::delete() in ui/include/classes/api/services/CToken.php.