次のような POST リクエストを実行する必要があります。
POST /feeds/api/users/default/subscriptions 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">
<category scheme="http://gdata.youtube.com/schemas/2007/subscriptiontypes.cat"
term="channel"/>
<yt:username>GoogleDevelopers</yt:username>
</entry>
たとえば、HttpWebRequest
オブジェクトを使用してヘッダー/メソッド/コンテンツタイプを設定するなど、サーバー(.NET/C#)側でそれを行う方法を知っています。
しかし、クライアント側でやりたいのですか?jQueryを使ったAjax? これらのパラメータはどこで設定できますか?