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

否