添加客户接口
POST
https://aa-hub.ddregion.com/api/v2/customer/addByPhone
请求参数
Query 参数
token
string
企业级接口调用凭证
Body 参数application/json
imBotId
string
必需
phone
string
电话号码
type
enum<number>
可选
枚举值:
13
默认值:
1
hello
string
打招呼语
示例
{
"imBotId": "string",
"phone": "string",
"type": 1,
"hello": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://aa-hub.ddregion.com/api/v2/customer/addByPhone?token' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
errcode
integer
必需
errmsg
string
错误信息
data
object
必需
imContactId
string
添加的联系人id
示例
{
"errcode": 0,
"errmsg": "string",
"data": {
"imContactId": "string"
}
}
修改于 2024-09-06 12:01:03