我的访问令牌有问题。我得到的每个令牌都有一个空范围。虽然在我的授权 URL 中,我已经设置了各种组合的范围。我收到所有令牌信息,但范围始终为空白。以下是授权 URL 和令牌输出的示例。
授权网址:
https://oauth.mobli.com/authorize?client_id=xxx&response_type=code&state=fa90532ac5dc926609a484b60d9d457e&redirect_uri=http%3A%2F%2Fcontestis.localhost%2Fapis%2Fmobli%2Fweb%2Findex.php&scope=advanced+basic
令牌输出:
Array ( [access_token] => xx [token_type] => mobli_user_related [expires_in] => 7776001 [refresh_token] => xx [user] => Array ( [id] => xx13030 [username] => XX [first_name] => XX [last_name] => XX ) [scopes] => )