PHP code example of hanson / tuling-sdk
1. Go to this page and download the library: Download hanson/tuling-sdk library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
hanson / tuling-sdk example snippets
composer
use Hanson\Tuling\Tuling;
$tuling = new Tuling($key, $secret);
$result = $tuling->text('广州天气')->request();
use Hanson\Tuling\Tuling;
$tuling = new Tuling($key, $secret);
$result = $tuling->text('广州天气')->user($id)->request();
use Hanson\Tuling\Tuling;
$tuling = new Tuling($key, $secret);
$result = $tuling->text('天气')->location(['city' => '广州'])->user($id)->request();