文章 Create Friendship REST 端点

URLs

POST api/v1/users/{requestorid}/friends.xml (or .json)

CREATE a friendship for a user by user id.

POST api/v1/users/{requestorname}/friends.xml (or .json)

CREATE a friendship for a user by username.

请求参数

名称

类型

描述

必需

默认值

选项

RequestorId

int?

Either the RequestorId or the RequestorName is required.

否

RequestorName

string

Either the RequestorId or the RequestorName is required.

否

RequesteeId

int

Requestee Id

是

RequestMessage

string

Request Message

是