400创建新文本帖子时出现错误请求。 Tumblr API

时间:2016-02-21 15:00:53

标签: java c# api tumblr

尝试使用Tumblr API创建新帖子时出错了

   {"meta":{"status":400,"msg":"Bad Request"},"response":{"errors":["Post cannot be empty."]}}

这是我的要求:

   POST https://api.tumblr.com/v2/blog/someblog.tumblr.com/post          
   HTTP/1.1
   User-Agent: BADNESS
   Content-Type: application/x-www-form-urlencoded
   Authorization: OAuth         
   oauth_consumer_key="xxxxxxxxxxxxxxxxxxxxxxxxxxx",         
   oauth_nonce="1c5uy752", oauth_signature="Qq9OE7wGE6Ml2ovbu7qzm0orjo8%3D", 
   oauth_signature_method="HMAC-SHA1", oauth_timestamp="1456062098",       
   oauth_token="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", 
   oauth_verifier="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",  
   oauth_version="1.0"
   Host: api.tumblr.com
   Content-Length: 36
   Expect: 100-continue

   body%3dok%26title%3dok%26type%3dtext

我可以删除帖子,所以我很确定标题是正确的,但不确定帖子正文。

如果POST体如:

body=ok&title=ok&type=text

我得到了

401 Unauthorized

请帮忙! 谢谢!

0 个答案:

没有答案