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