文章 Create Status Message REST 端点

URLs

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

CREATE a status message by user id.

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

CREATE a status message by username.

请求参数

名称

类型

描述

必需

默认值

选项

UserId

int?

Either the UserId or Username is required.

否

Username

string

Either the UserId or Username is required.

否

MessageBody

string

The text of the message.

是

GroupId

int?

Optional group to post the message.

否

AttachedUrl

string

Optional URL to attach to the message.

否