0
Googleが提供するプロトコルAPIを使用してBlogger投稿を更新しようとしています。新しい投稿を作成しても問題ありませんが、更新すると問題が発生します。Blogger APIがURIを編集するためにput要求で400を返す
postRequest = new Ajax.Request("http://www.blogger.com/feeds/" + activeBlogID + "/posts/default/" + activePostID,
{
method: 'put',
contentType: 'application/atom+xml',
postBody: postXML,
requestHeaders:
{
Authorization: 'GoogleLogin auth=' + authCode
},
onSuccess: this.postRequestSuccess.bind(this),
onFailure: this.postRequestFailure.bind(this)
});
しかし、これは400不正なリクエストURIに戻ってくるたびに:私は、次のコード(Javascriptを)持っています。 URIが正しいと言うことができる限り(これは '編集'リンク要素のものと同じですが、私はそれをXMLから掘り出すよりも簡単なので再作成します)。私はそれに何か問題を見ていないが、多分私は何かが欠けている。提案?