文章 List User Presence REST 端点

URLs

GET api/v1/userpresence.xml (or .json)

LIST users currently online with their location(s).

GET api/v1/userpresence/{userid}/friends.xml (or .json)

LIST a user's friends who are currently online using user id.

GET api/v1/userpresence/{username}/friends.xml (or .json)

LIST a user's friends who are currently online using username.

请求参数

名称

类型

描述

必需

默认值

选项

UserId

int?

User Id

Username

string

Username

Location

string

Location

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.