GET /people/{personId}/networks
基本信息
获取人员personId的networks成员资格列表。
您可以使用-me-
字符串代替<personid>
来代表当前通过身份验证的用户。
请求方式: GET
请求API :/ people / {personId} / networks
响应等级(状态200)
成功回应
{ "list": { "pagination": { "count": 0, "hasMoreItems": true, "totalItems": 0, "skipCount": 0, "maxItems": 0 }, "entries": [ { "entry": { "id": "string", "homeNetwork": true, "isEnabled": true, "createdAt": "2021-01-08T08:52:11.340Z", "paidNetwork": true, "subscriptionLevel": "Free", "quotas": [ { "id": "string", "limit": 0, "usage": 0 } ] } } ] } }
响应内容类型 applicaiton/json
Query参数
名称 | 类型 | 是否必填 | 示例值 | 描述 |
skipCount | integer | 否 | 0 | 在list中跳过指定数量的数据。 如果未提供,则默认值为0。 |
maxItems | integer | 否 | 100 | list中要返回的最大项目数。 如果未提供,则默认值为100。 |
fields | Array[string] | 否 | field名称的list。 例如,如果您想节省整体带宽,则可以使用此参数来限制响应中返回的field。 例如,如果您想节省整体带宽,则可以使用此参数来限制响应中返回的field。 该列表适用于返回的单个实体或集合中的条目。 如果API方法也支持include参数,则除了在fields参数中指定的fields外,还返回include参数中指定的fields。 |
Path参数
名称 | 类型 | 是否必填 | 示例值 | 描述 |
personId | string | 是 | 个人的标识符。 |
错误信息描述
状态码 | 原因 |
400 | 参数无效:maxItems或skipCount的值无效 |
401 | 验证失败 |
404 | personId不存在 |
default | 意外错误 |
返回结果示例
{ "error": { "errorKey": "string", "statusCode": 0, "briefSummary": "string", "stackTrace": "string", "descriptionURL": "string", "logId": "string" } }