控制台-观众-创建
优质
小牛编辑
136浏览
2023-12-01
控制台-观众-创建
接口URL
{youke-url}/console/Index.php?c=audience&a=create×tamp=1607677497&access_key=abc&sign=07b4ece336a4f0767a77d3cfe5588803ae8c6097
请求方式
POST
Content-Type
form-data
请求Query参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
c | audience | 必填 | - |
a | create | 必填 | - |
timestamp | 1607677497 | 必填 | - |
access_key | abc | 必填 | - |
sign | 07b4ece336a4f0767a77d3cfe5588803ae8c6097 | 必填 | - |
请求Body参数
参数 | 示例值 | 是否必填 | 参数描述 |
---|---|---|---|
name | 测试一个观众 | 必填 | 观众姓名 |
testau@126.com | 选填 | 邮箱 | |
mobile | 13333333553 | 必填 | 手机号码 |
departments | [1251236] | 必填 | 部门 |
job_number | - | 选填 | 工号 |
position | - | 选填 | 职位 |
password | 123456 | 必填 | 密码 |
password_repeat | 123456 | 必填 | 重复密码 |
成功响应示例
{
"code": 200,
"msg": "success",
"data": {
"account_id": 297,
"name": "测试一个观众",
"mobile": "13333333553",
"email": "testau@126.com",
"position": "",
"job_number": "",
"ding_id": null,
"ding_user_id": null,
"ding_union_id": null,
"name_py": "CeShiYiGeGuanZhong",
"name_first": "csyggz",
"updated_at": "2020-12-15 11:30:14",
"created_at": "2020-12-15 11:30:14",
"id": 415969,
"departments": [
{
"id": 1251236,
"account_id": 297,
"parent_id": -1,
"ding_id": 0,
"ding_parent_id": 0,
"name": "杭州雅顾科技有限公司",
"name_py": "HangZhouYaGuKeJiYouXianGongSi",
"name_first": "hzygkjyxgs",
"order": null,
"created_at": "2018-03-19 10:36:02",
"updated_at": "2018-03-19 10:36:02",
"deleted_at": "-0001-11-30 00:00:00"
}
]
}
}
参数 | 示例值 | 参数描述 |
---|---|---|
code | 200 | 响应状态码 |
msg | success | 提示信息 |
data | - | json array |
data.*.account_id | 297 | 帐户ID |
data.*.name | 测试一个观众 | 帐户名称 |
data.*.mobile | 13333333553 | 手机号 |
data.*.email | testau@126.com | 邮箱 |
data.*.position | - | 职位 |
data.*.job_number | - | 工号 |
data.*.ding_id | - | ding_id |
data.*.ding_user_id | - | ding_user_id |
data.*.ding_union_id | - | ding_union_id |
data.*.name_py | CeShiYiGeGuanZhong | 姓名拼音 |
data.*.name_first | csyggz | 姓名首字母 |
data.*.updated_at | 2020-12-15 11:30:14 | 更新时间 |
data.*.created_at | 2020-12-15 11:30:14 | 创建时间 |
data.*.id | 415969 | 观众ID |
data.*.departments | - | json array |
data..departments..id | 1251236 | 部门ID |
data..departments..account_id | 297 | 帐户ID |
data..departments..parent_id | -1 | 父级部门ID |
data..departments..ding_id | 0 | ding_id |
data..departments..ding_parent_id | 0 | ding_parent_id |
data..departments..name | 杭州雅顾科技有限公司 | 部门名 |
data..departments..name_py | HangZhouYaGuKeJiYouXianGongSi | 部门拼音 |
data..departments..name_first | hzygkjyxgs | 部门名首字母 |
data..departments..order | - | 排序值 |
data..departments..created_at | 2018-03-19 10:36:02 | 创建时间 |
data..departments..updated_at | 2018-03-19 10:36:02 | 更新时间 |
data..departments..deleted_at | -0001-11-30 00:00:00 | 删除时间 |