文章 List Status Message REST 端点

URLs

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

SHOW status messages for a group.

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

LIST sitewide status messages.

GET api/v1/users/{userid}/statuses.xml (or .json)

LIST status messages for a user by user id.

GET api/v1/users/{username}/statuses.xml (or .json)

LIST status messages for a user by username.

请求参数

名称

类型

描述

必需

默认值

选项

UserId

int?

Either the UserId or Username is required.

Username

string

Either the UserId or Username is required.

Include

string

Options include following, groups, replies. Specify multiple by separating with commas. Ex: include=following,groups

StartDate

DateTime?

Deprecated: Use BeforeDate instead.

BeforeDate

DateTime?

Specify BeforeDate to only retrieve activity messages posted from that date and before.

AfterDate

DateTime?

Retrieve status messages posted after the date specified.

GroupId

int?

Optional to return group messages.

PageSize

int?

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