文章 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.