控制台-观众-创建

优质
小牛编辑
132浏览
2023-12-01

控制台-观众-创建

接口URL

{youke-url}/console/Index.php?c=audience&a=create&timestamp=1607677497&access_key=abc&sign=07b4ece336a4f0767a77d3cfe5588803ae8c6097

请求方式

POST

Content-Type

form-data

请求Query参数

参数示例值是否必填参数描述
caudience必填-
acreate必填-
timestamp1607677497必填-
access_keyabc必填-
sign07b4ece336a4f0767a77d3cfe5588803ae8c6097必填-

请求Body参数

参数示例值是否必填参数描述
name测试一个观众必填观众姓名
emailtestau@126.com选填邮箱
mobile13333333553必填手机号码
departments[1251236]必填部门
job_number-选填工号
position-选填职位
password123456必填密码
password_repeat123456必填重复密码

成功响应示例

{
    "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"
            }
        ]
    }
}
参数示例值参数描述
code200响应状态码
msgsuccess提示信息
data-json array
data.*.account_id297帐户ID
data.*.name测试一个观众帐户名称
data.*.mobile13333333553手机号
data.*.emailtestau@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_pyCeShiYiGeGuanZhong姓名拼音
data.*.name_firstcsyggz姓名首字母
data.*.updated_at2020-12-15 11:30:14更新时间
data.*.created_at2020-12-15 11:30:14创建时间
data.*.id415969观众ID
data.*.departments-json array
data..departments..id1251236部门ID
data..departments..account_id297帐户ID
data..departments..parent_id-1父级部门ID
data..departments..ding_id0ding_id
data..departments..ding_parent_id0ding_parent_id
data..departments..name杭州雅顾科技有限公司部门名
data..departments..name_pyHangZhouYaGuKeJiYouXianGongSi部门拼音
data..departments..name_firsthzygkjyxgs部门名首字母
data..departments..order-排序值
data..departments..created_at2018-03-19 10:36:02创建时间
data..departments..updated_at2018-03-19 10:36:02更新时间
data..departments..deleted_at-0001-11-30 00:00:00删除时间