文章 List Forum Reply REST 端点

URLs

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

LIST forum replies to a thread.

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

LIST forum replies in a forum that need moderated.

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

LIST forum replies to a thread.

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

LIST sitewide forum replies that need moderated.

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

LIST forum replies in a group that need moderated.

请求参数

名称

类型

描述

必需

默认值

选项

ThreadId

int?

Thread Id

ParentReplyId

int?

Parent Reply Id

ForumId

int?

Forum Id

GroupId

int?

Group Id

ForumReplyQueryType

string

Options: verified-answers, non-verified-answers. Use verified-answers to get only verified answers. Use non-verified-answers to get only suggested answers.

IncludeSubGroups

bool?

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

ContentIds

string

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

SortBy

string

Options: PostDate, UserID, SortOrder, TotalVotes, Score:SCORE_ID, ContentIdsOrder

SortOrder

string

Options: Ascending, Descending. Default is Descending when sorting by scores, Ascending for all others.

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.