Query Feishu @ User

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 Example

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

Queryable Fields

Run the zstack-cli tool, enter QuerySNSFeiShuAtPerson and press Tab to view all queryable fields and cross-table queryable resource names.

API Response

Response example

{
  "inventories": [
    {
      "uuid": "zhang.san",
      "endpointUuid": "bcb849d464dd3a0aba49fba91209b4e2"
    }
  ]
}
NameTypeDescriptionStarting Version
successboolean 4.2.0
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error4.2.0
inventoriesListFor details, see inventories4.2.0

error

NameTypeDescriptionStarting Version
codeStringThe error code number, a globally unique identifier for the error, for example, SYS.1000 or HOST.10015.0.0
descriptionStringA brief description of the error5.0.0
detailsStringDetailed information about the error5.0.0
elaborationStringReserved field. Defaults to null5.0.0
opaqueLinkedHashMapReserved field. Defaults to null5.0.0
causeErrorCodeThe root error that caused the current error. This field is null if there is no root cause5.0.0

inventories

NameTypeDescriptionStarting Version
uuidStringThe UUID of the resource, uniquely identifying this resource4.2.0
userIdStringFeishu user ID4.2.0
endpointUuidStringFeishu endpoint UUID4.2.0

SDK Examples

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()