2014-11-02 4 views
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는 도움이되지 않습니다.

답변

4

기기 용 OAuth2는 현재 Google 범위의 하위 집합 만 지원합니다. 해당 목록에 contacts.readonly 범위를 추가하려면 issue tracker에 개선 요청을 제출하십시오.

+0

감사합니다. –

+0

https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3659 –

관련 문제