文章 List Following REST 端点

URLs

GET api/v1/users/{followerid}/following.xml (or .json)

LIST users that are being followed by a user by user id.

GET api/v1/users/{followername}/following.xml (or .json)

LIST users that are being followed by a user by username.

请求参数

名称

类型

描述

必需

默认值

选项

FollowerId

int?

Either FollowerId or FollowerName is required.

是

FollowerName

string

Either FollowerId or FollowerName is required.

是

SortBy

string

Specifies a property by which to sort the list. Options: CreatedDate, DisplayName

否

SortOrder

string

Sort the list in specific order. Options: Ascending, Descending

否

PageSize

int?

Specify the number of results to return per page. If not set the default is 20. The max is 100.

否

PageIndex

int?

Specify the page number of paged results to return. Zero-based index. If not specified the default is 0.

否