kokororin / docomo-dialogue
NTT docomo 对话API的包装器。
v1.2.2
2016-09-17 20:19 UTC
Requires
- php: >=5.4.0
- ext-intl: *
- ext-mbstring: *
- ext-pcre: *
- php-curl-class/php-curl-class: ^6.0
Requires (Dev)
- apigen/apigen: ^4.1
- codeclimate/php-test-reporter: dev-master
- phpmd/phpmd: ^2.2
- phpunit/phpunit: ^4.8|^5.5
- squizlabs/php_codesniffer: ^2.3
This package is auto-updated.
Last update: 2024-08-29 03:58:13 UTC
README
这是由NTT docomo提供的杂谈对话API的包装器。
此库不是NTT docomo官方库。
此源代码的作者与NTT docomo无任何关系。
※目前不支持发送docomo ID的API类型(2015-02-24发布)
安装
建议通过Composer进行安装和使用。
当您可以使用Composer时,请执行以下命令。
php composer.phar require jp3cki/docomo-dialogue
或者,手动编辑composer.json。请注意确保JSON的有效性。如果已经存在require,请只添加内容。
"require": { "jp3cki/docomo-dialogue": "~1.0" }
然后,执行php composer.phar install即可使用。
※依赖关系的安装可能需要较长时间。
使用前
要使用杂谈对话API,需要docomo的开发者注册和应用程序注册。
操作示例
sample/sample.php中可以进行简单的聊天。
根据环境,使用BackSpace删除日语时可能会遇到问题,但请谅解,这是一个示例。
在运行之前,请打开sample.php并替换API密钥。
有关操作的询问等
- 关于使用此库出现的问题,请在此项目的issue中报告。
- 有关API本身的操作问题,请在此项目的issue中咨询或直接联系NTT docomo的支持。
- 此库对于NTT docomo而言,是“非官方库”和“非可复现的最小代码”。此代码的示例不适用于报告。(但是,源代码本身NTT docomo可以查看,可能有所帮助)
API等
-
将目录(可能是vendor/jp3cki/docomo-dialogue)移动到此处,并执行
make doc,则在doc目录中会自动生成API文档。 -
在追踪源代码时,以
Dialogue类为起点。 -
正在寻找愿意编写良好文档的人。
特别感谢
- @chomado - chomado/chomado_bot
- NTT docomo
许可证
以MIT许可证提供。
简而言之,只要包含版权声明即可。对于使用它而产生的任何责任,我们不承担。
The MIT License (MIT)
Copyright (c) 2015 AIZAWA Hina <hina@bouhime.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.