查询飞书@用户

GET/zstack/v1/sns/application-endpoints/feishu/at-persons
GET/zstack/v1/sns/application-endpoints/feishu/at-persons/{uuid}

Headers

Authorization: OAuth the-session-uuid

Curl示例

curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/sns/application-endpoints/feishu/at-persons?q=uuid=0fce8f7cc0fb3c54b4f2ce7c53a1547a&q=endpointUuid=2ba8eb33d960377087c0f461de85642c
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/sns/application-endpoints/feishu/at-persons/66e1178e2a6d3941b472c2532abe0450

可查询字段

运行zstack-cli命令行工具,输入QuerySNSFeiShuAtPerson并按Tab键查看所有可查询字段以及可跨表查询的资源名。

API返回

该API成功时返回一个空的JSON结构**{}**,出错时返回的JSON结构包含一个error字段,例如:

{
  "inventories": [
    {
      "uuid": "zhang.san",
      "endpointUuid": "bcb849d464dd3a0aba49fba91209b4e2"
    }
  ]
}
名字类型描述起始版本
successboolean 4.2.0
errorErrorCode错误码,若不为null,则表示操作失败, 操作成功时该字段为null。 详情参考error4.2.0
inventoriesList详情参考inventories4.2.0

error

名字类型描述起始版本
codeString错误码号,错误的全局唯一标识,例如SYS.1000, HOST.10015.0.0
descriptionString错误的概要描述5.0.0
detailsString错误的详细信息5.0.0
elaborationString保留字段,默认为null5.0.0
opaqueLinkedHashMap保留字段,默认为null5.0.0
causeErrorCode根错误,引发当前错误的源错误,若无原错误,该字段为null5.0.0

inventories

名字类型描述起始版本
uuidString资源的UUID,唯一标示该资源4.2.0
userIdString飞书用户id4.2.0
endpointUuidString飞书endpoint uuid4.2.0

SDK示例

Java SDK

QuerySNSFeiShuAtPersonAction action = new QuerySNSFeiShuAtPersonAction();
action.conditions = asList("uuid=3c1da61415ec3311a18e7ff94f488fc9","endpointUuid=5ceba2786e113cf5ae1af0f95ff3623c");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QuerySNSFeiShuAtPersonAction.Result res = action.call();

Python SDK

QuerySNSFeiShuAtPersonAction action = QuerySNSFeiShuAtPersonAction()
action.conditions = ["uuid=c309bdc1cb213847aa4be3d57b4b2d55","endpointUuid=8b95394f0d55320085f44175ee0d116f"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QuerySNSFeiShuAtPersonAction.Result res = action.call()