aliyunapi/php-aliyun-open-api-search

1.0.1 2017-03-30 04:26 UTC

This package is auto-updated.

Last update: 2024-10-11 02:24:13 UTC


README

开放搜索接口

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist aliyunapi/php-aliyun-open-api-search

or add

"aliyunapi/php-aliyun-open-api-search": "~1.0"

to the require section of your composer.json.

使用方式

$client = new \aliyun\search\Client([
    'accessKeyId' => '123456',
    'accessSecret' => '123456'
    'appName' => 'search',
    'baseUri' => 'http://opensearch-cn-hangzhou.aliyuncs.com',
]);

//发送接口请求
$response = $client->getApps();

print_r($response);


exit;