This project is read-only.

Guokr APIs

Apr 19, 2014 at 6:55 PM
Edited Apr 19, 2014 at 6:57 PM
http://www.guokr.com/post/444887/
http://www.guokr.com/post/459700/
里面的都是。就补充一些那里没有列举的吧。

Retrieve feeds:
http://www.guokr.com/apis/community/user/activity/feed.json?limit=6&access_token=
arguments:
  • limit: 抓多少条 feeds
  • access_token: access token 啦
Ignore notifications:
http://www.guokr.com/apis/community/notice_ignore.json
HTTP method: PUT
arguments:
  • nid: // 我也不知道有什么用
  • access_token: 还是那个啦
Updating...
Apr 19, 2014 at 7:00 PM
Edited Apr 19, 2014 at 7:16 PM
Retrieve answer replies:
http://www.guokr.com/apis/ask/answer_reply.json?t=1397930320718&retrieve_type=by_answer&answer_id=688596&access_token=
Arguments:
  • t: // 大概还是当前时间戳
  • retrieve_type: // 我也不知道有什么用
  • answer_id: 答案的 ID
  • access_token: 还是那个 access token
Reply to an answer:
http://www.guokr.com/apis/ask/answer_reply.json
HTTP method: POST
Arguments:
  • answer_id: 答案的 ID
  • content: 答案的内容
  • retrieve_type=by_answer // Still I don't know
  • access_token
Delete a reply to an answer:
http://www.guokr.com/apis/ask/answer_reply/2898015.json?access_token=
HTTP method: DELETE
Arguments (在 URL 中的参数):
  • [filename]: 讨论的 ID
  • access_token
Vote for/against an answer:
http://www.guokr.com/apis/ask/answer_polling.json
HTTP method: POST
Arguments:
  • answer_id: [same as above]
  • opinion: support or oppose
  • access_token: [same as above]
Cancel vote on an answer:
http://www.guokr.com/apis/ask/answer_polling.json?answer_id=688596&access_token=
HTTP method: DELETE
Arguments (in URL): [the same as above]
Apr 20, 2014 at 11:55 AM
Like a comment on a post:
http://www.guokr.com/apis/group/post_reply_liking.json
HTTP method: POST
Arguments:
  • reply_id
  • access_token
    Success: 201 CREATED
还抓到一个
http://www.guokr.com/apis/auth/external_oauth2.json?access_token=
这个貌似是关联微博信息的,具体用途不明。

Group info card:
http://www.guokr.com/apis/group/group.json?retrieve_type=by_id&group_id=318&access_token=
Arguments:
  • retrieve_type: I'm not clear...
  • group_id: ID of the group
  • access_token: [same as above]
Retrieve posts from a given group:
http://www.guokr.com/apis/group/post.json?retrieve_type=digest_post_by_group&group_id=318&limit=3&access_token=
Arguments:
  • retrieve_type: 应该是指获取的类型吧,但是我就找到了一个合法参数 digest_post_by_group 是只找本组内的精华帖
  • group_id: [same as above]
  • limit: 至多获取几条
  • access_token: [same as above]
    // http://www.guokr.com/post/459700/ 里面,同样的 ? 前面的 URL 但是后面的参数不同, HTTP 方法也不同 (删帖 DELETE 更新 PUT),进行的是 删帖/更新帖子操作
一个使用者所管理的小组/回帖数/发的精华帖数量:
http://www.guokr.com/apis/group/user_info.json?ukey=uyrn5a&access_token=
Arguments:
  • ukey: 用户的 id toString(36) 后的结果
  • access_token: [same as above]
May 7, 2014 at 1:15 PM
Jun 20, 2014 at 11:58 AM
Edited Jun 20, 2014 at 11:59 AM
Article API 终于抓到了啊:
http://www.guokr.com/apis/minisite/article.json?retrieve_type=by_subject&limit=20&offset=18&access_token=&_=
limit 是抓取数, offset 是离最开始的文章的距离
返回结果:
其 result 属性是一个数组 (自己看吧...)
Jun 20, 2014 at 12:49 PM