您的位置:首页 > 移动开发 > 微信开发

自定义API

2016-02-05 16:52 375 查看

自定义API

......
case '中超':
//载入库文件
include('simple_html_dom.php');
$html = file_get_html('http://www.zhiboba.cn/')//中超div id
//读取文本
$contentStr = $res->plaintext;
//删除空格
$contentStr = trim($contentStr);
$resultStr = sprintf($newsTpl,$fromUsername,$toUsername,$time.$contentStr);
echo $resultStr;
break;
......
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  api 微信