$token is whatever the variable is that you put the token into after generating a token via the Client Credentials/App Access Token flow
$token is whatever the variable is that you put the token into after generating a token via the Client Credentials/App Access Token flow