0
범위 내에서 contacts.readonly
범위에 액세스하려고하는데 Google Developers Console의 내 프로젝트 API에 주소록 API가 사용 설정되어 있습니다. 나는 쓰기를 읽을 수있는 범위를 변경하면Google 주소록 API - 읽기 전용 액세스
$ export client_id='**********************************************.apps.googleusercontent.com'
$ export scope='https://www.googleapis.com/auth/contacts.readonly'
$ curl -d "client_id=${client_id}&scope=${scope}" https://accounts.google.com/o/oauth2/device/code
{
"error" : "invalid_scope",
"error_description" : "Not authorized to request the scopes: [https://www.googleapis.com/auth/contacts.readonly]",
"error_uri" : "http://code.google.com/apis/accounts/docs/OAuth2.html"
}
이 작동 : 콘솔에서
$ export scope='https://www.google.com/m8/feeds'
$ curl -d "client_id=${client_id}&scope=${scope}" https://accounts.google.com/o/oauth2/device/code
{
"device_code" : "*********************************************",
"user_code" : "********",
"verification_url" : "https://www.google.com/device",
"expires_in" : 1800,
"interval" : 5
}
추가의 Google+ API는 도움이되지 않습니다.
감사합니다. –
https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3659 –