getNetworkThreads
- Home
- Forums
- UgcForumThread
- getNetworkThreads
getNetworkThreads
Gets threads from across the entire network or site.
Parameters
Name | Description |
node_id required | Node ID the thread belongs to. |
blog_id optional | Blog ID the thread belongs to. |
category_id optional | Category ID the thread belongs to. |
forum_id optional | Forum ID the thread belongs to. |
created_by optional | User ID that created the thread. |
post_to_show optional | Whether the most recent or first post should be shown. |
allow_other_nodes optional | Skips certain node id checks if set. |
sort_key optional | Key to sort threads by. |
sort_order optional | Order to arrange thread sorting. |
get_total optional | Whether or not to get the total number of threads. |
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=getNetworkThreads&node_id=188234&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 |
{ "service":"ugcForumThread", "action":"getNetworkThreads", "code":1, "message":"Posts Retrieved", "total":3, "item":[ { "thread_id":"31499188", "forum_id":"233613", "title":"My new thread...", "sticky":"0", "anonymous":"0", "created":"2019-01-30 16:24:40", "created_ts":1548887080, "created_by":"143593317", "num_views":"0", "num_posts":0, "last_post_id":"0", "first_post_id":"0", "expires":null, "hot":0, "thread_url":"http://www.onesitedemo.com/go/thread/view/139071/31499188/My_new_thread..." }, { "thread_id":"31499186", "forum_id":"233613", "title":"My new thread...", "sticky":"0", "anonymous":"0", "created":"2019-01-30 15:30:57", "created_ts":1548883857, "created_by":"143593317", "num_views":"0", "num_posts":"0", "last_post_id":"556520906", "first_post_id":"556520906", "expires":null, "hot":0, "thread_url":"http://www.onesitedemo.com/go/thread/view/139071/31499186/My_new_thread...", "last_post_title":"My new thread...", "last_post_content":"My new thread...", "last_post_edited":null, "last_post_edited_by":null, "last_post_created":"2019-01-30 15:30:57", "last_post_created_ts":1548883857, "last_post_created_by":"143593317", "last_post_anonymous":"0", "last_post_censored_date":null, "last_post_censored_by":null }, { "thread_id":"31499187", "forum_id":"233613", "title":"My new thread to delete...", "sticky":"0", "anonymous":"0", "created":"2019-01-30 15:30:57", "created_ts":1548883857, "created_by":"143593317", "num_views":"0", "num_posts":0, "last_post_id":"0", "first_post_id":"0", "expires":null, "hot":0, "thread_url":"http://www.onesitedemo.com/go/thread/view/139071/31499187/My_new_thread_to_delete..." } ], "page":1, "per_page":15 } |
Service Information
Service | ugcForumThread |
Method | getNetworkThreads |
Type | REST |
Response Types | JSON, XML |