YouTube API를 사용하여 즐겨 찾기를 삭제하려고합니다. Google은 최근 AuthSub 인증 방법을 더 이상 사용하지 않기 때문에 공식적으로 권장되는 OAuth2 인증 방법을 선택하기로 결정했습니다.OAuth2로 인증 할 때 YouTube 즐겨 찾기 삭제
나는 동영상을 즐겨 찾기에 설정할 수있어,하지만 난 the described method in the docs 사용하여 삭제하려고하면 응답은 : 나는 Google OAuth2 Playground 사용하고
Only the favorite owner can remove it.
, 나는 설정할 수있어 좋아하는 동영상이므로 인증에 오류가 없다는 것이 거의 확실하지만 여전히 작동하지 않습니다.
내가 만들고있어 요청은 다음과 같다 : 내가 즐겨 찾기로 "nq3gs6PG8-E"비디오를 설정 할
DELETE /feeds/api/users/default/favorites/nq3gs6PG8-E HTTP/1.1
Host: gdata.youtube.com
X-gdata-key: key=DEVELOPER_KEY
Content-length: 0
Authorization: OAuth ACCESS_TOKEN
----------------------------------------
HTTP/1.1 403 Forbidden
Content-length: 38
X-xss-protection: 1; mode=block
X-content-type-options: nosniff
X-google-cache-control: remote-fetch
-content-encoding: gzip
Server: GSE
Reason: Forbidden
Via: HTTP/1.1 GWA
X-gdata-user-country: US
Cache-control: private, max-age=0
Date: Thu, 20 Sep 2012 17:53:19 GMT
X-frame-options: SAMEORIGIN
Content-type: text/html; charset=UTF-8
Expires: Thu, 20 Sep 2012 17:53:19 GMT
Only the favorite owner can remove it.
, 내 DEVELOPER_KEY 및 access_token이는 정확합니다.
수정 사항이 있는지 궁금한 점이 있습니까? 나는 더 이상 사용되지 않는 인증 방법으로 롤백하고 싶지 않을 것입니다.하지만 안전하지는 않지만 선택의 여지가 있습니까?