应用类型 | 是否支持调用 | 权限申请方式 | API Explorer调试 |
---|---|---|---|
企 业内部应用 | 是 | 获取CRM主数据的接口访问权限 | 调试 |
第三方企业应用 | 是 | 获取CRM主数据的接口访问权限 | 调试 |
第三方个人应用 | 否 | — | — |
curl --location --request POST 'https://oapi.dingtalk.com/topapi/crm/objectdata/contact/query?access_token=dc73axxxx' \
--header 'Content-Type: application/json' \
--data-raw '{
"cursor":"0",
"query_dsl":"{\"queryGroupList\":[{\"logicType\":\"AND\",\"queryObjectList\":[{\"fieldId\":\"contact_phone\",\"filterType\":\"EQ\",\"value\":\"18000000000\"},{\"fieldId\":\"contact_related_customer\",\"filterType\":\"EQ\",\"value\":\"INST-XXX\"}]}]}",
"current_operator_userid":"user01",
"provider_corpid":"dingxxx",
"page_size":"100"
}'
{
"errcode": 0,
"errmsg": "ok",
"result": {
"values": [
{
"gmt_create": "2019-12-25 15:33:12",
"instance_id": "INST_XX",
"data": "{\"contact_related_customer\":{\"extendValue\":\"{\\\"quote\\\":\\\"1\\\",\\\"bizType\\\":\\\"crm_customer\\\",\\\"list\\\":[{\\\"instanceId\\\":\\\"c5baeea7-58de-4b61-882b-902aafd0b212\\\"}]}\",\"value\":\"[\\\"1\\\"]\"},\"contact_name\":\"联系人1\",\"contact_position\":{\"extendValue\":\"[{\\\"label\\\":\\\"老板\\\",\\\"key\\\":\\\"option_1\\\"}]\",\"value\":\"[\\\"老板\\\"]\"},\"contact_phone\":{\"extendValue\":\"{\\\"mode\\\":\\\"phone\\\",\\\"countryKey\\\":\\\"CN\\\",\\\"flag\\\":\\\"C\\\",\\\"countryCode\\\":\\\"+86\\\",\\\"areaNumber\\\":\\\"\\\",\\\"flagPy\\\":\\\"Z\\\",\\\"countryName\\\":\\\"China\\\",\\\"countryNameZh\\\":\\\"中国\\\",\\\"countryNamePy\\\":\\\"ZHONGGUO\\\"}\",\"value\":\"136********\"}}",
"extend_data": "{\"contactUserId\":\"userId02\",\"contactUnionId\":\"unionId02\"}",
"object_type": "crm_contact",
"creator_userid": "user01",
"permission": [
{
"participant_userid_list": [
"user01",
"user02"
],
"owner_userid_list": [
"user01",
"user02"
]
}
],
"gmt_modified": "2019-12-25 15:33:12",
}
],
"next_cursor": "100",
"has_more": true,
"page_size": 100
}
}
【钉钉】API开发者 微信交流群
用微信扫右侧二维码,加入【钉钉】API 开发者 交流群,互助沟通