基于php的万年历接口调用代码实例代码描述:基于php的万年历接口调用代码实例代码平台:聚合数据<?php//+----------------------------------------------------------------------//|JuhePHP[NOZUONODIE]//+----------------------------------------------------------------------//|Copyright(c)2010-2015Allrightsreserved.//+----------------------------------------------------------------------//|Author:Juhedata<info@>//+---------------------------------------------------------------------- //----------------------------------//万年历调用示例代码-聚合数据//在线接口文档:s/177//---------------------------------- header('Content-type:text/html;charset=utf-8'); //配置您申请的appkey$appkey="*********************"; //************************$url="http://japi./calendar/day";$params=array( "key"=>$appkey,//您申请的appKey "date"=>"",//指定日期,格式为YYYY-MM-DD,如月份和日期小于10,则取个位,如:2012-1-1);$paramstring=http_build_query($params);$content=juhecurl($url,$paramstring);$result=json_decode($content,true);if($result){ if($result['error_code']=='0'){ print_r($result); }else{ echo$result['error_code'].":".$result['reason']; }}else{ echo"请求失败";}//************************************************** //************************$url="http://japi./calendar/month";$params=array( "key"=>$appkey,//您申请的appKey "year-month"=>"",//指定月份,格式为YYYY-MM,如月份和日期小于10,则取个位,如:2012-1);$paramstring=http_build_query($params);$content=juhecurl($url,$
基于php的万年历接口调用代码实例 来自淘豆网m.daumloan.com转载请标明出处.