如何通过PHP API在Wit.ai中执行自定义方法? [英] How do I execute custom methods in Wit.ai from a PHP API?

查看:130
本文介绍了如何通过PHP API在Wit.ai中执行自定义方法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Wit.ai上有一个机器人,我想调用PHP API.有什么办法可以解决这个问题吗?我已经看过如何针对JavaScript和Python做到这一点,但似乎找不到找到针对PHP做到这一点的方法.

I have a bot on Wit.ai which I would like to make calls to a PHP API. Is there any way to go about this? I've seen how to do it for JavaScript and Python but I can't seem to find a way to do this for PHP.

推荐答案

显然,执行自定义操作或进行方法调用的方法基于响应实体.您可以向wit.ai发出请求,该请求将根据从请求中获悉的情报与某些实体发送响应.收到响应后,可使用它来根据响应中的实体在服务器端执行自定义操作.

Apparently, the way to perform custom operations or make method calls is based on the response entities. You can make request to wit.ai, which send a response with certain entities based on the intelligence learned from the request. When you get the response use it to perform custom operations on your server side based on the entities in the response.

这篇关于如何通过PHP API在Wit.ai中执行自定义方法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆