Thread Endpoint - PixNyanNyan/PixNyanNyan-api GitHub Wiki
GET /api/threads
Request
| param | type | optional | remarks |
|---|---|---|---|
| lower_limit | integer | yes | returned thread id should be greater than this value |
| upper_limit | integer | yes | returned thread id should be smaller than this value |
| client_id | string | yes | used to check if user owned the post |
Response
Array of 10 threads, each with 5 latest replies.
GET /api/threads/{id}
Request
| param | type | optional | remarks |
|---|---|---|---|
| lower_limit | integer | yes | returned reply id should be greater than this value |
| upper_limit | integer | yes | returned reply id should be smaller than this value |
| client_id | string | yes | used to check if user owned the post |
Response
Main post with 10 replies.