Query DingTalk @ User

GET/zstack/v1/sns/application-endpoints/ding-talk/at-persons
GET/zstack/v1/sns/application-endpoints/ding-talk/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/ding-talk/at-persons?q=uuid=bc09a0f65270322da363ad99552b234e&q=endpointUuid=a4e3535bc4663b15832d7cc091855e13
curl -H "Content-Type: application/json;charset=UTF-8" \
-H "Authorization: OAuth b86c9016b4f24953a9edefb53ca0678c" \
-X GET http://localhost:8080/zstack/v1/sns/application-endpoints/ding-talk/at-persons/38f8430ba7c9331d9d6d920072d7bf27

Queryable Fields

Run the CLI tool, enter QuerySNSDingTalkAtPerson and press Tab to view all queryable fields and cross-table queryable resource names.

API Response

On success, this API returns an empty JSON structure {}. On error, the returned JSON structure contains an error field, for example:

{
  "inventories": [
    {
      "uuid": "234f8735703a38ecb840cfe9042bc945",
      "phoneNumber": "13062689903",
      "endpointUuid": "9488e18c34b933f5a06d1f45301c7f20"
    }
  ]
}
NameTypeDescriptionStarting Version
successboolean 4.2.0
inventoriesListFor details, see inventories4.2.0
errorErrorCodeError code. If not null, the operation failed. This field is null when the operation succeeds. For details, see error4.2.0

inventories

NameTypeDescriptionStarting Version
uuidStringThe UUID of the resource, uniquely identifying this resource4.2.0
phoneNumberStringMobile phone number4.2.0
endpointUuidStringDingTalk endpoint UUID4.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

SDK Examples

Java SDK

QuerySNSDingTalkAtPersonAction action = new QuerySNSDingTalkAtPersonAction();
action.conditions = asList("uuid=3806b82167a33673b5067831090f317d","endpointUuid=c36e1b34d3e73db7a53e067da95de3d5");
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c";
QuerySNSDingTalkAtPersonAction.Result res = action.call();

Python SDK

QuerySNSDingTalkAtPersonAction action = QuerySNSDingTalkAtPersonAction()
action.conditions = ["uuid=b836d745aa623217838bc9d0ecb3bb1f","endpointUuid=dc9f00eecd1837e484bde65bf53f45a1"]
action.sessionId = "b86c9016b4f24953a9edefb53ca0678c"
QuerySNSDingTalkAtPersonAction.Result res = action.call()