Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iboldurev/api-ai-php-example
https://github.com/iboldurev/api-ai-php-example
Last synced: 13 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/iboldurev/api-ai-php-example
- Owner: iboldurev
- License: mit
- Created: 2016-06-21T11:51:12.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-09T14:10:36.000Z (over 7 years ago)
- Last Synced: 2024-12-21T11:43:22.616Z (13 days ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 8
- Watchers: 1
- Forks: 7
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Api.ai php demo
===============This is an interactive demo using the [iboldurev/api-ai-php][1] sdk.
- You should create a [api.ai][2] account before run the demo.
- Make sure to install dependencies with composer before running the demo.All these demos are built with the [symfony/console][3] component and should be used with a CLI.
Query demo
----------```bash
$ php demo.php api:query
>>> Hello
+ Response body :
{
"id": "9cd3a070-65ee-42f5-b6fe-4113e49ea3e3",
"timestamp": "2016-06-21T11:45:59.257Z",
"result": {
"source": "agent",
"resolvedQuery": "Hello",
"contexts": [],
"metadata": [],
"fulfillment": {
"speech": ""
},
"score": 0
},
"status": {
"code": 200,
"errorType": "success"
},
"sessionId": "00000000-0000-0000-0000-000000000000"
}
>>>
```[1]: https://github.com/iboldurev/api-ai-php
[2]: https://api.ai/
[3]: http://symfony.com/doc/current/components/console/introduction.html