{ "error_description" : "Access token has insufficient scope: basic, names, email" , "error" : "insu



我已经在授权请求中设置了电子邮件的权限。

https://api.23andme.com/authorize/?recretect_uri=http://localhost:5000/receive_code/receive_code/&respsens_type_type = code&ampsope = code&client_amp;client_id=P>

使用此URL我已授权该应用程序。此后,它将我重定向到redirect_uri并在请求中显示代码。这里显示内部505错误。

使用此代码我已发布请求以获取令牌>以下是响应。

{

"access_token": "28515f8734566dc0377ee0496e7b2d7d",
"token_type": "bearer",
"expires_in": 86400,
"refresh_token": "77cbfa595ee11b8a8e9d03acb09ad9f2",
"scope": "email rs123"

}

现在,我正在尝试请求> curl" https://api.23andme.com/3/account/" -H"授权:持有者28515F8734566DC0377EE0496E7B2D7D

响应错误是,如果我尝试使用demo_oauth_token尝试相同的响应。

{" error_description":"访问令牌的范围不足:基本,名称,电子邮件"," error":" Insufffice_scope"}

您需要发送编码URL。例如,您的请求URL应该看起来像:

https://api.23andme.com/authorize/?redirect_uri=http://localhost:8000/receive_code/&response_type=code&client_id=CLIENT_ID&scope=email%20rs123&select_profile=true

相关内容

最新更新