getPosts
- Home
- Forums
- UgcForumThread
- getPosts
getPosts
Gets posts that belong to a particular forum thread.
Parameters
Name | Description |
thread_id required | ID of a forum thread. |
created_by optional | User ID that created the thread. |
user_relation optional | User relation of the user making the request. |
post_id optional | ID of a forum post. |
min_post_id optional | Minimum post ID to return. |
max_post_id optional | Maximum post ID to return. |
sort_key optional | Key to sort threads by. |
sort_order optional | Order to arrange thread sorting. |
page optional | Page of results to return. |
num optional | Number of items to return per page. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/ugcForumThread?action=getPosts&thread_id=28943337&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 |
{ "service":"ugcForumThread", "action":"getPosts", "code":1, "message":"Posts Retrieved", "total":9, "item":[ { "post_id":"516738587", "title":"This is my edited post body content...", "content":"This is my edited post body content...", "anonymous":"0", "last_edited":"2019-01-30 15:31:21", "edited_by":143593317, "created_by":"143593317", "created":"2012-02-23 13:45:47", "created_ts":1330026347, "rating":"0", "censored_date":"2012-03-19 14:44:26", "censored_by":"143593317", "page":1, "first_post":true, "content_id":1473723467, "poster_home_url":null, "poster_avatar_url":"", "poster_profile_photo_url":"", "poster_username":null, "poster_user_id":null, "poster_age":null, "signature":"This is my new signature text.", "poster_num_posts":"15", "editor_home_url":null, "editor_avatar_url":"", "editor_profile_photo_url":"", "editor_username":null, "editor_age":null }, { "post_id":"556520907", "title":"This is my new post...", "content":"This is my new post...", "anonymous":"0", "last_edited":null, "edited_by":null, "created_by":"143593317", "created":"2019-01-30 15:31:20", "created_ts":1548883880, "rating":"0", "censored_date":null, "censored_by":null, "page":1, "content_id":1812918687, "poster_home_url":null, "poster_avatar_url":"", "poster_profile_photo_url":"", "poster_username":null, "poster_user_id":null, "poster_age":null, "signature":"This is my new signature text.", "poster_num_posts":"15" }, { "post_id":"556520908", "title":"My NEW post to delete...", "content":"My NEW post to delete...", "anonymous":"0", "last_edited":null, "edited_by":null, "created_by":"143593317", "created":"2019-01-30 15:31:21", "created_ts":1548883881, "rating":"0", "censored_date":null, "censored_by":null, "page":1, "content_id":1812919693, "poster_home_url":null, "poster_avatar_url":"", "poster_profile_photo_url":"", "poster_username":null, "poster_user_id":null, "poster_age":null, "signature":"This is my new signature text.", "poster_num_posts":"15" } ], "page":1, "per_page":10 } |
Service Information
Service | ugcForumThread |
Method | getPosts |
Type | REST |
Response Types | JSON, XML |