文章 Delete Friendship REST 端点

URLs

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

DELETE a friendship for a user by user ids.

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

DELETE a friendship for a user by usernames.

请求参数

名称

类型

描述

必需

默认值

选项

RequestorId

int?

Either the RequestorId or the RequestorName is required.

RequestorName

string

Either the RequestorId or the RequestorName is required.

RequesteeId

int?

Either the RequesteeId or the RequesteeName is required.

RequesteeName

string

Either the RequesteeId or the RequesteeName is required.