Home > Backend Development > PHP Tutorial > 微信接入图灵机api,实现机器人自动回复

微信接入图灵机api,实现机器人自动回复

WBOY
Release: 2016-06-06 20:19:57
Original
1783 people have browsed it

前一段时间在网上看过一个视频教程,是写一个app实现自动回复。
请问,微信接入机器人具体怎么实现

回复内容:

前一段时间在网上看过一个视频教程,是写一个app实现自动回复。
请问,微信接入机器人具体怎么实现

借助 snoopy ,

<code>$submit = 'http://www.tuling123.com/openapi/api?key=xxx&info=xx';
$snoopy->fetch($submit);
$info =  json_decode($snoopy->results,true);</code>
Copy after login

其中 xx是你的key, info 是关键词

若是用于公众号接入,可在机器人接入微信接入 复制相关参数到微信公众平台设置即可

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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template