change OAUTH2 access token(a,b)


Changes the OAuth2 Access Token of the given HTTP(S) channel a to the new one. Returns true for success, false otherwise.

Note: After successful execution of the function you will find the new token in the additional IDs of the channel, in obfuscated form. The expiration time of the token is not changed.

Description of Parameters


Parameter

Description

a

HTTP(S) channel ID.

b

New token.


Example


Parameter a

Parameter b

Result

Remark

123456

myNewToken

true


0

myNewToken

false

Invalid channel ID.

123456


false

Invalid token (empty).