huicui / huicuiapi
HuicuiApi for PHP
1.3.0
2017-09-19 11:29 UTC
Requires
- php: ^5.3.3
- guzzlehttp/guzzle: *
- monolog/monolog: *
- psr/log: ^1.0.1
Requires (Dev)
- guzzlehttp/guzzle: *
- monolog/monolog: *
- phpspec/prophecy: ^1.6.1
- phpunit/phpunit: ^5.5
- predis/predis: ^1.1
Suggests
- guzzlehttp/guzzle: Used for sending Http requests
- monolog/monolog: To deal with the log
Provides
- psr/log-implementation: 1.0.0
README
HuicuiApi
组装人API
Huicui Api for PHP
Huicui人类Api for PHP (SDK)
安装
通过Composer
$ composer require huicui/huicuiapi
基本用法
必须初始化后才能使用
用法示例一。
<?php
require __DIR__ . '/../../autoload.php';
$AppId='';
$appKey='';
$AppSecret='';
$hcapi = new HuicuiApi\HuicuiApi($AppId, $appKey, $AppSecret);
用法示例二。
<?php
require __DIR__ . '/../../autoload.php';
$AppId='';
$appKey='';
$AppSecret='';
$hcapi = HuicuiApi\HuicuiApi::getInstance($AppId, $appKey, $AppSecret);
具体使用请参考doc目录中的文档