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

否