Hi,
I am having a problem retrieving access tokens for multiple scopes. Im trying scope=genome basic.
i'm posting thefollowing parameters (client id and secret ommited):
client_id=xxxxxx&client_secret=xxxxxxxx&grant_type
=authorization_code&code=7323449a36ec2fb4584cbeb7238def3d&redirect_uri=http://localhost/genotypes.html
&scope=genomes basic
and i'm getting back this response:
{"access_token": "e43dc72819a34800ef9e979191ff67a7", "token_type": "bearer", "expires_in": 86400, "refresh_token"
: "6e53e97608448b7c067e6cd66dffead5", "scope": "genomes"}
Shouldnt I be getting scope: genomes basic ?
Now when I curl to retrieve user ID:
sudo curl
https://api.23andme.com/1/user/ -H "Authorization: Bearer e43dc72819a34800ef9e979191ff67a7"
{"error_description": "Access token has insufficient scope: basic", "error": "insufficient_scope"}
What is going on?!