获取讨论列表GET https://api.douban.com/v2/target/:id/discussions
这里的 target 是不是要替换成 movie、book 这样的?不管我怎么弄都是返回 404。
% http GET https://api.douban.com/v2/target/1915561/discussions -v
GET /v2/target/1915561/discussions HTTP/1.1
Accept: */*
Accept-Encoding: identity, deflate, compress, gzip
Host: api.douban.com
User-Agent: HTTPie/0.3.0
HTTP/1.1 404 Not Found
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Date: Thu, 27 Sep 2012 14:19:37 GMT
Expires: -1
Keep-Alive: timeout=10
Server: nginx
Transfer-Encoding: chunked
The requested link does not exist on this site. If you arrived here by following a link from an external page, please inform that page's maintainer.
% http GET https://api.douban.com/v2/music/1915561/discussions -v
GET /v2/music/1915561/discussions HTTP/1.1
Accept: */*
Accept-Encoding: identity, deflate, compress, gzip
Host: api.douban.com
User-Agent: HTTPie/0.3.0
HTTP/1.1 404 Not Found
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Date: Thu, 27 Sep 2012 14:20:18 GMT
Expires: -1
Keep-Alive: timeout=10
Server: nginx
Transfer-Encoding: chunked
The requested link does not exist on this site. If you arrived here by following a link from an external page, please inform that page's maintainer.
新发讨论
% http --form POST https://api.douban.com/v2/target/2277204/discussions Authorization:"Bearer ee10c85e43905bcfca32591acab1136d" title=测试 content=测试 -v
POST /v2/target/2277204/discussions HTTP/1.1
Accept: */*
Accept-Encoding: identity, deflate, compress, gzip
Authorization: Bear ee10c85e43905bcfca32591acab1136d
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Host: api.douban.com
User-Agent: HTTPie/0.3.0
title=%E6%B5%8B%E8%AF%95&content=%E6%B5%8B%E8%AF%95
HTTP/1.1 404 Not Found
Connection: keep-alive
Content-Encoding: gzip
Content-Type: text/html; charset=utf-8
Date: Thu, 27 Sep 2012 14:17:57 GMT
Expires: -1
Keep-Alive: timeout=10
Server: nginx
Transfer-Encoding: chunked
The requested link does not exist on this site. If you arrived here by following a link from an external page, please inform that page's maintainer.