Home > php教程 > PHP源码 > 茉莉机器人API,可用于QQ机器人、微信公众平台、网站客服等

茉莉机器人API,可用于QQ机器人、微信公众平台、网站客服等

PHP中文网
Release: 2016-05-26 08:20:17
Original
5790 people have browsed it

茉莉机器人API,智能聊天,可查天气、ip、QQ资料、lol战绩,还能讲笑话和抽签

PHP代码

<?php
 
/**
 * 茉莉机器人网站:http://www.itpk.cn
 * 茉莉机器人在线体验:http://www.itpk.cn/experience.php
 */
 
header("Content-type:text/plain; charset=utf-8");
 
//不使用ApiKey调用
$result = file_get_contents("http://i.itpk.cn/api.php?question=123");
 
//使用ApiKey调用
//$result = file_get_contents("http://i.itpk.cn/api.php?question=123&api_key=你的ApiKey&api_secret=你的ApiSecret");
 
echo $result;
 
?>
Copy after login


source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Articles by Author
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template