获取公司信息及联系人信息

请求地址:

http://www.crm.com/bangwo8crmApi.php/companyinfo?supprotname={supportname}&crmname={crmname}&pwd={pwd}&authcode={authcode}

请求方法:POST
URL参数说明:

参数 是否必填 说明 示例
authcode 安全验证密钥,如果crmName与pwd为空,此项必填
crmname crm账号,如果Authcode是空,此项必填
pwd crm密码,如果Authcode是空,此项必填 md5加密
supprotname 帮我吧客服账号
companyid 第三方系统客户的唯一id,以逗号分割 4,6,8
contactid 第三方系统客户的唯一id

POST数据内容:

{"companyid":"12,14,15"}

请求成功返回结果

APIResult;00;
{
  "12":
  {
      "company":{"companyid":"12","companyname":"公司名","updatetime":"2016-04-27 22:17:05"},
      "contactor":
      [
          {"cid":"1103451","crealname":"联系人","cmobile":"125xxx","cremark":""},
          {"cid":"1103452","crealname":"联系人","cmobile":"125xxx","cremark":""},
          {"cid":"1103453","crealname":"联系人","cmobile":"125xxx","cremark":""}
       ]
  },
  "13":
  {
      "company":{"companyid":"13","companyname":"公司名","updatetime":"2016-04-27 22:17:05"},
      "contactor":
      [
          {"cid":"1103454","crealname":"联系人","cmobile":"125xxx","cremark":""},
          {"cid":"1103455","crealname":"联系人","cmobile":"125xxx","cremark":""},
          {"cid":"1103456","crealname":"联系人","cmobile":"125xxx","cremark":""}
       ]
  },
}

返回结果说明

参数 是否必填 说明 示例
companyid 公司Id
companyname 公司名称 1,2,3,15
updatetime 上次修改时间 2016-04-27 22:17:05
cid 联系人在crm中的唯一id
crealname 联系人姓名
cmobile 联系人电话
cremark 联系人备注

请求失败

APIResult;01;提示信息