号码0月租 不限号码数量
支持正规行业,API接入

支持扫码挪车应用场景的API接入,单向隐私彻底解决隐私号被标记,车主不接外地号码的问题。

扫码挪车虚拟号

【API接口】查询隐私号通话记录、通话时长

发布时间:2025-12-31 17:48:31 编辑:管理员

请求示例:

{AppSecret}:签约后技术人员会提供

{url}:yinsihao.1oc.cn

{starttime}和{endtime}为10位时间戳,查询时间跨度不能超过30日。

CURL

curl -i -k --get --include 'http://{url}/?module=yinsihao&file=apicalllog&job=calllog&starttime={starttime}&endtime={endtime}&page=1'  -H 'Authorization:你自己的AppSECRET'

PHP

   $host="https://{url}";
   $path="/";
   $method="GET";
   $appsecret="{AppSecret}";
   $headers=array();
   array_push($headers,"Authorization:".$appsecret);
   $querys="module=yinsihao&file=apicalllog&job=calllog&starttime={starttime}&endtime={endtime}&page=1";
   $bodys="";
   $url=$host.$path."?".$querys;
   $curl=curl_init();
   curl_setopt($curl, CURLOPT_CUSTOMREQUEST,$method);
   curl_setopt($curl, CURLOPT_URL,$url);
   curl_setopt($curl, CURLOPT_HTTPHEADER,$headers);
   curl_setopt($curl, CURLOPT_FAILONERROR,false);
   curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
   curl_setopt($curl, CURLOPT_HEADER,true);
   if(1==strpos("$".$host,"https://"))
    {
       curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,false);
       curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,false);
    }
   var_dump(curl_exec($curl));

JAVA

public static void main(String[] args) {
        String host = "https://{url}";
        String path = "/module/yinsihao/apicalllog.php";
        String method = "GET";
        String appsecret = "{AppSecret}";
        Mapheaders = new HashMap();
        headers.put("Authorization",appsecret);
        Mapquerys = new HashMap();
        querys.put("module", "yinsihao");
        querys.put("file", "apicalllog");
        querys.put("job", "calllog");
        querys.put("starttime", "{starttime}");
        querys.put("endtime", "{endtime}");
        querys.put("page", "1");
        try {
            HttpResponse response = HttpUtils.doGet(host, path, method, headers, querys);
            System.out.println(response.toString());
            //获取response的body
            //System.out.println(EntityUtils.toString(response.getEntity()));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

Python

import urllib, urllib2, sys
import ssl
host = 'http://{url}'
path = '/'
method = 'GET'
appsecret = "{AppSecret}";
querys = 'module=yinsihao&file=apicalllog&job=calllog&starttime={starttime}&endtime={endtime}&page=1'
bodys = {}
url = host + path + '?' + querys
request = urllib2.Request(url)
request.add_header('Authorization',appsecret)
ctx = ssl.create_default_context()
ctx.check_hostname = False
ctx.verify_mode = ssl.CERT_NONE
response = urllib2.urlopen(request, context=ctx)
content = response.read()
if (content):
print(content)

失败响应

{
    "code": 400, //指返回结果码,并非http状态码
    "msg": "域名校验失败",
}

成功响应

 {
   "code":200,
   "msg":"ok",
   "total_minutes":"34",//总的通话时长(分钟)
   "total_num":"63",//总的通话记录数
   "page":7,//总页数
   "data": [
        {
           "mobphone":"137****6820",
           "xmobphone":"181****2720",
           "sbid":"17250117621504",
           "star_time":"1725011762",
           "end_time":"1725012962",
           "call_type":"0",
           "bmobphone":"137****3897",
           "thsc":"0",
           "thsc_minute":"0",
           "return_url":"https://****/tools/qianzhi/binding/",
           "province":"广东",
           "city":"梅州",
           "sp":"移动",
           "mid":"",
           "appid":"127",
           "push":"0",
           "remarks":"",
           "cpid":"",
           "status":"",
           "noanswerreason":"",
           "fromprovince":"0",
           "fromcity":"0",
           "fromsp":"0"
        },
       ......
    ]
}