0
Google Contacts API에서 사진을 가져올 수 없습니다. 다음은 내가 사용한 코드입니다.JS를 사용하여 Google Contacts API에서 사진을 얻는 방법
gapi.client.request({
method: 'GET',
path: '/m8/feeds/photos/media/default/1f27ce8913181e',
headers: {
"Content-Type":"image/*",
"GData-Version": "3.0",
"if-match":"*",
"data":token,
}
}).then(function(result){
console.log(result);
})
콘텐츠 유형에서 JSON과 XML을 모두 시도했습니다. 또한 위의 URL에 access_token을 추가했습니다. 그래서이 이미지를 얻도록 도와주세요.
미리 감사드립니다.
"할 수 없다"는 것은 무엇을 의미합니까? 오류가 있었습니까? 문제가 무엇인지 자세히 설명하십시오. – zero298
Google에서 응답을 받았는데 상태는 404입니다. 이미지의 바이트가 없습니다. –