文章 List Blog REST 端点

URLs

GET api/v1/blogs.xml (or .json)

LIST blogs.

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

LIST blogs.

请求参数

名称

类型

描述

必需

默认值

选项

GroupId

int?

Group Id

IncludeSubGroups

bool?

Only used when GroupId is specified. Default is false.

ApplicationIds

string

Comma separated list of ApplicationIds. Used to limit to a specific set of blogs as well as sort order if SoryBy is set to ApplicationIdsOrder

PermissionId

string

Used to get a list of blogs for which the user set in UserId has the provided Permission ID.

SortBy

string

Options are: DateCreate, LastPost, Name, Post, SortOrder, Thread, TotalPosts, Score:SCORE_ID, ApplicationIdsOrder. Default is SortOrder.

SortOrder

string

Options include Ascending, Descending. Default is Ascending.

OwnerUserId

int?

Owner User Id

UserId

int?

User ID of the user to check permissions for. This option is only used whenever the PermissionId is also supplied.

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.