龙虎赌博

This is the documentation page for an unsupported version of 龙虎赌博.
Is this not what you were looking for? Switch to the current version or choose one from the drop-down menu.

token.update

説明

object token.update(object/array tokens)

このメソッドでは、既存のトークンを更新できます。

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

パラメータ

(object/array) 更新されるトークンプロパティ

tokenidプロパティはトークンごとに定義する必要があり、すべてのプロパティはオプションです。 渡されたプロパティのみが更新され、他のプロパティは変更されません。

このメソッドは标準トークンプロパティを持つトークンを受け入れます。

戻り値

(object) tokenidsプロパティの下で更新されたトークンの滨顿を含むオブジェクトを返します。

トークンの有効期限変更

トークンから有効期限を削除します。

Request:

{
           "jsonrpc": "2.0",
           "method": "token.update",
           "params": {
               "tokenid": "2",
               "expires_at": "0"
           },
           "auth": "038e1d7b1735c6a5436ee9eae095879e",
           "id": 1
       }

Response:

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

ソース

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