文章 List Forum Thread REST 端点

URLs

GET api/v1/forums/{forumid}/threads.xml (or .json)

LIST forum threads in a forum.

GET api/v1/forums/{forumid}/threads/active.xml (or .json)

LIST active forum threads in a forum.

GET api/v1/forums/{forumid}/threads/moderated.xml (or .json)

LIST forum threads in a forum that need moderated.

GET api/v1/forums/{forumid}/threads/mythreads.xml (or .json)

LIST forum threads in a forum that the user has participated in.

GET api/v1/forums/{forumid}/threads/unanswered.xml (or .json)

LIST unanswered forum threads in a forum.

GET api/v1/forums/{forumid}/threads/unread.xml (or .json)

LIST unread forum threads in a forum.

GET api/v1/forums/threads.xml (or .json)

LIST sitewide forum threads. Always includes subgroups.

GET api/v1/forums/threads/active.xml (or .json)

LIST sitewide active forum threads. Always includes subgroups.

GET api/v1/forums/threads/authored.xml (or .json)

LIST sitewide forum threads that user has authored. Always includes subgroups.

GET api/v1/forums/threads/moderated.xml (or .json)

LIST sitewide forum threads that need moderated.

GET api/v1/forums/threads/mythreads.xml (or .json)

LIST sitewide forum threads that user has participated in. Always includes subgroups.

GET api/v1/forums/threads/unanswered.xml (or .json)

LIST sitewide unanswered forum threads. Always includes subgroups.

GET api/v1/forums/threads/unread.xml (or .json)

LIST sitewide unread forum threads. Always includes subgroups.

GET api/v1/groups/{groupid}/forums/threads.xml (or .json)

LIST forum threads in a group.

GET api/v1/groups/{groupid}/forums/threads/active.xml (or .json)

LIST active forum threads in a group.

GET api/v1/groups/{groupid}/forums/threads/moderated.xml (or .json)

LIST forum threads in a group that need moderated.

GET api/v1/groups/{groupid}/forums/threads/mythreads.xml (or .json)

LIST forum threads in a group that the user has participated in.

GET api/v1/groups/{groupid}/forums/threads/unanswered.xml (or .json)

LIST unanswered forum threads in a group.

GET api/v1/groups/{groupid}/forums/threads/unread.xml (or .json)

LIST unread forum threads in a group.

Request Parameters

名称

类型

描述

必需

默认值

选项

ForumId

int?

Forum Id

否

GroupId

int?

Group Id

否

ContentIds

string

Comma separated list of ContentIds. Used to limit to a specific set of forum threads as well as sort order if SoryBy is set to ContentIdsOrder

否

AuthorId

int?

Author Id

否

ForumThreadQueryType

string

Options are: All, Moderated, Answered, Unanswered, UnansweredWithNotVerified, AnsweredNotVerified, AnsweredWithNotVerified, Active, Unread, MyThreads. Default is All.

否

SortBy

string

Options are: LastPost, ThreadAuthor, TotalReplies, TotalViews, TotalRatings, FirstPost, Subject, TotalVotes, Score:SCORE_ID, ContentIdsOrder. Default is LastPost.

否

SortOrder

string

Options are asc (ascending) and desc (descending). Default is desc for lastpost, date, replies, views and score, asc for topic.

否

PopularOnly

bool?

Default is false.

否

IncludeDiscussions

bool?

Default is true.

否

IncludeQuestions

bool?

Default is true.

否

IncludeSubGroups

bool?

Used when getting forum threads for a group to specify whether or not to include subgroups. Default is false.

否

CreatedAfterDate

DateTime?

Include only threads created on or after

否

CreatedBeforeDate

DateTime?

Include only threads created before

否

PageSize

int?

Specify the number of results to return per page. If not set the default is 20. The max is 100.

否

PageIndex

int?

Specify the page number of paged results to return. Zero-based index. If not specified the default is 0.

否