在這裏我們看到:https://developers.google.com/youtube/2.0/developers_guide_protocol_comments#Adding_a_comment如何使用XML API進行POST?
我需要用XML API做請求。
POST /feeds/api/videos/VIDEO_ID/comments HTTP/1.1
Host: gdata.youtube.com
Content-Type: application/atom+xml
Content-Length: CONTENT_LENGTH
Authorization: Bearer ACCESS_TOKEN
GData-Version: 2
X-GData-Key: key=DEVELOPER_KEY
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns="http://www.w3.org/2005/Atom"
xmlns:yt="http://gdata.youtube.com/schemas/2007">
<content>This is a crazy video.</content>
</entry>
我該用什麼?
不錯!以爲我是坤必須經過xml地獄! – sirvon