aliyunapi/php-aliyun-open-api-search

1.0.1 2017-03-30 04:26 UTC

This package is auto-updated.

Last update: 2024-09-11 02:06:48 UTC


README

开放搜索接口

安装

安装此扩展的首选方式是通过 composer

运行

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

或将

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

添加到您的 composer.json 文件的 require 部分。

使用方法

$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;