getThreadInfo
- Home
- Forums
- UgcForumThread
- getThreadInfo
getThreadInfo
Gets info about a particular forum thread.
Parameters
Name | Description |
thread_id required | ID of a forum thread. |
user_relation optional | User relation of the user making the request. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/ugcForumThread?action=getThreadInfo&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 |
{ "service":"ugcForumThread", "action":"getThreadInfo", "code":1, "message":"Thread Info Retrieved", "item":{ "thread_id":"28943337", "content_id":"1473723465", "forum_id":"233613", "category_id":"139071", "title":"My new thread title...", "sticky":"0", "anonymous":"0", "created":"2012-02-23 13:45:47", "created_ts":1330026347, "created_by":"143593317", "num_views":"832", "last_post_id":"516738587", "first_post_id":"516738587", "num_posts":"24", "expires":"2019-02-12 16:58:55", "hot":0, "locked":true, "thread_url":"http://www.onesitedemo.com/go/thread/view/139071/28943337/My_new_thread_title...", "last_post_title":"This is my edited post body content...", "last_post_content":"This is my edited post body content...", "last_post_edited":"2019-02-12 16:51:24", "last_post_edited_by":"143593317", "last_post_created":"2012-02-23 13:45:47", "last_post_created_ts":1330026347, "last_post_created_by":"143593317", "last_post_anonymous":"0", "last_post_censored_date":"2019-02-12 16:51:25", "last_post_censored_by":"143593317" } } |
Service Information
Service | ugcForumThread |
Method | getThreadInfo |
Type | REST |
Response Types | JSON, XML |