基于php的网站监测接口调用代码实例
代码描述:基于php的网站监测接口调用代码实例
代码平台:聚合数据
// +----------------------------------------------------------------------
//----------------------------------
// 网站监测调用示例代码-聚合数据
// 在线接口文档:http://www.doczj.com/doc/53f4b5928e9951e79a89276e.html/docs/140
//----------------------------------
header('Content-type:text/html;charset=utf-8');
//配置您申请的appkey
$appkey= "*********************";
//************1.创建任务************
$url= "http://www.doczj.com/doc/53f4b5928e9951e79a89276e.html/webxmf/createTask";
$params= array(
"key"=> $appkey,//您申请到的APPKEY
"url"=> "",//要监测的网站的根域名,注意:必须是根域名,其他不支持
"dtype"=> "",//返回的数据格式,json或xml,默认json
"contactPhone"=> "",//
);
$paramstring= http_build_query($params);