API文档管理

创建客户

代理商可通过本接口来创建属于自己旗下的客户,创建过程中会根据所填写的手机号产生一个超级管理员,创建成功之后可直接登录客户管理平台(http://weiliaokefu.com)进行管理,并与访客聊天。


接口调用请求说明

http请求方式: POST(请使用https协议) http://api.weiliaokefu.com/agent-create?appid=appid&sign=sign
参数 是否必须 传值方式 说明
appid GET 调用接口凭证(代理商appid)
sign GET 接口签名
timestamp
POST 请求时间
name

POST 客户公司全称
link

POST 联系人
mobile

POST 联系电话(也是登录到客户管理后台的默认密码)
address

POST 公司地址
version_id

POST 客户版本id
time

POST 版本截止日期 参数形式2016-06-09这种格式传递(要大于当前系统时间)
client_num

POST 客户版本坐席数

返回说明

正确时返回JSON数据包:

{
"company_id":2,
"company_appid":scxdscdscds5454xscxdscdscs, 
"company_appsert":3r53543vfdvbdbvdbgfbgfnn,
"time":145678900,
"deadline_time":146789000,
"cservice":15,
"client_num"20,
"version_id":5,
"errcode":200
}

返回参数说明:

参数 说明
company_id 客户的ID号
company_appid 客户的APPID
company_appsert
客户的APPSERT
time 客户创建时间
cservice_num 子账号数
client_num 坐席数
version_id 版本ID
errcode 正确返回

错误时返回JSON数据包:

{"errcode":"-1",errmsg":"error"}