简体   繁体   English

program-o for android chat bot application

[英]program-o for android chat bot application

I am developing android chatbot application using program-o . 我正在使用program-o开发android chatbot应用程序 I have program-o running on my localhost. 我在我的localhost上运行了program-o。 I went through program-o documentation but still, I'm not able to understand what changes I need make to enable the communication between my Android app and program-o server. 我浏览了程序文档,但仍然无法理解我需要做什么更改才能启用Android应用程序和程序服务器之间的通信。

Write a php code to use program-o api. 编写一个PHP代码来使用program-o api。

Take the chat input from GET/POST parameters. 从GET / POST参数中获取聊天输入。

Use that input to get the output from program-o. 使用该输入来获取program-o的输出。

Parse that into json or any other format you like and print it. 将其解析为json或您喜欢的任何其他格式并打印出来。

Host that php file on a web server. 在Web服务器上托管该php文件。

Now make an HTTP connection from android app. 现在从Android应用程序建立HTTP连接。 Give the input as parameters and parse the output received. 将输入作为参数并解析收到的输出。

You have to create a LAMP server and run an instance of Program o Json / xml rest api will interface will android app 你必须创建一个LAMP服务器并运行一个程序的实例o Json / xml rest api将界面将安装到Android应用程序

You must use async task runner,httpresponse , and all. 您必须使用异步任务运行器,httpresponse和all。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM