change OAUTH2 access token()

Prev Next

Changes the OAuth2 Access Token of the given "HTTP" channel a to the new token b. 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.

Parameters

Parameter

Description

a

HTTP 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).