MyService


单击此处,获取完整的操作列表。

RegisterDevice

注册用户信息(新版APP)

分两种情况注册
第一种:登陆前,通过扫描企业二维码注册,这个时候 参数 Token 为空;; DealerID、CompanyCode,不为空
第二种:登陆“巡探 查询 APP”后,注册,这个时候 参数 Token 不能为空;; DealerID、CompanyCode,为空

参数
string Token:Token
string DealerID:经销商ID(加密前,为正整数),加密
string CompanyCode:公司编码(长度为6位),扫描企业二维码所得,加密
string DeviceTypeNo:机器型号(通过解码激活码所得,00010803),加密
string DeviceID:机号(通过解码激活码所得,2025032500001),加密
string PhoneNoEmail:注册的时候发送短信验证码或者邮件验证码的 号码加密
string UserName:用户名,加密
string PurviewID:用户权限ID(加密前,为正整数,默认为 1),加密
string Password:密码,加密
string ActivaCode:激活码
string ActivaString:激活码,解码后的 json 字符串
string PhoneEigenValue:手机特征值,AndroidID加密
string ModelString:功能码,json
string DeviceString:APK 收集的手机信息,json
string ERCodeString:扫描二维码的内容,不加密,不加密,不加密

返回结构:
public class SimpleResult
{
    public string Result; // 错误代码
    public string Message; // 错误信息
}

返回值
Result描述
Result=0注册成功
Result=-1程序错误,Message为错误信息
Result=-2Token 错误
Result=-3查询用户失败
Result=-19此用户名称已经存在,不能重复注册
Result=-20公司已经被删除,或者公司不存在
Result=-21公司还没有启用,不能注册操作用户
Result=-22此手机号码已经注册,不能重复注册
Result=-31Token 失效

测试

若要使用 HTTP POST 协议对操作进行测试,请单击“调用”按钮。
参数
Token:
DealerID:
CompanyCode:
DeviceTypeNo:
DeviceID:
PhoneNoEmail:
UserName:
PurviewID:
Password:
ActivaCode:
ActivaString:
PhoneEigenValue:
ModelString:
DeviceString:
ERCodeString:

SOAP 1.1

以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。

POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/RegisterDevice"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <RegisterDevice xmlns="http://tempuri.org/">
      <Token>string</Token>
      <DealerID>string</DealerID>
      <CompanyCode>string</CompanyCode>
      <DeviceTypeNo>string</DeviceTypeNo>
      <DeviceID>string</DeviceID>
      <PhoneNoEmail>string</PhoneNoEmail>
      <UserName>string</UserName>
      <PurviewID>string</PurviewID>
      <Password>string</Password>
      <ActivaCode>string</ActivaCode>
      <ActivaString>string</ActivaString>
      <PhoneEigenValue>string</PhoneEigenValue>
      <ModelString>string</ModelString>
      <DeviceString>string</DeviceString>
      <ERCodeString>string</ERCodeString>
    </RegisterDevice>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <RegisterDeviceResponse xmlns="http://tempuri.org/">
      <RegisterDeviceResult>string</RegisterDeviceResult>
    </RegisterDeviceResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

以下是 SOAP 1.2 请求和响应示例。所显示的占位符需替换为实际值。

POST /MyService.asmx HTTP/1.1
Host: www.zooytech.com
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <RegisterDevice xmlns="http://tempuri.org/">
      <Token>string</Token>
      <DealerID>string</DealerID>
      <CompanyCode>string</CompanyCode>
      <DeviceTypeNo>string</DeviceTypeNo>
      <DeviceID>string</DeviceID>
      <PhoneNoEmail>string</PhoneNoEmail>
      <UserName>string</UserName>
      <PurviewID>string</PurviewID>
      <Password>string</Password>
      <ActivaCode>string</ActivaCode>
      <ActivaString>string</ActivaString>
      <PhoneEigenValue>string</PhoneEigenValue>
      <ModelString>string</ModelString>
      <DeviceString>string</DeviceString>
      <ERCodeString>string</ERCodeString>
    </RegisterDevice>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <RegisterDeviceResponse xmlns="http://tempuri.org/">
      <RegisterDeviceResult>string</RegisterDeviceResult>
    </RegisterDeviceResponse>
  </soap12:Body>
</soap12:Envelope>

HTTP GET

以下是 HTTP GET 请求和响应示例。所显示的占位符需替换为实际值。

GET /MyService.asmx/RegisterDevice?Token=string&DealerID=string&CompanyCode=string&DeviceTypeNo=string&DeviceID=string&PhoneNoEmail=string&UserName=string&PurviewID=string&Password=string&ActivaCode=string&ActivaString=string&PhoneEigenValue=string&ModelString=string&DeviceString=string&ERCodeString=string HTTP/1.1
Host: www.zooytech.com
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>

HTTP POST

以下是 HTTP POST 请求和响应示例。所显示的占位符需替换为实际值。

POST /MyService.asmx/RegisterDevice HTTP/1.1
Host: www.zooytech.com
Content-Type: application/x-www-form-urlencoded
Content-Length: length

Token=string&DealerID=string&CompanyCode=string&DeviceTypeNo=string&DeviceID=string&PhoneNoEmail=string&UserName=string&PurviewID=string&Password=string&ActivaCode=string&ActivaString=string&PhoneEigenValue=string&ModelString=string&DeviceString=string&ERCodeString=string
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://tempuri.org/">string</string>