跳转到内容

wx tokens

此内容尚不支持你的语言。

Create and revoke API tokens for selected accounts

wx tokens create

Create an API token with account and permission scopes

Argument or flagTakesWhat it does
<NAME>position 1, requiredLabel for the new token
--accountsrequired, takes <ACCOUNTS>, repeatableAccount ID the token may use, or * for all accounts; repeat for several
--expires-attakes <EXPIRES_AT>Expire the token at this Unix time in seconds; it never expires if omitted
--scopesrequired, takes <SCOPES>, repeatablePermission to grant: read, media, send, read-state, login, admin or calls; repeat

wx tokens list

List API tokens without revealing their secret values

wx tokens revoke

Revoke an API token by ID

Argument or flagTakesWhat it does
<ID>position 1, requiredToken ID from wx tokens list