v3project/yii2-api
Composer 安装命令:
composer require v3project/yii2-api
包简介
V3toys yii2 api
关键字:
README 文档
README
http://www.v3toys.ru/index.php?nid=api
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist v3toys/yii2-api "*"
or add
"v3toys/yii2-api": "*"
How to use
//App config [ 'components' => [ //.... 'v3toys' => [ 'class' => '\v3toys\yii2\api\Api', 'url' => 'http://www.v3toys.ru/pear-www/Kiwi_Shop/api.php', 'affiliate_key' => 'fff', 'timeout' => 12, ], //.... ] ]
Examples
$response = \Yii::$app->v3toys->send('getProductsDataByIds', [ 'products_ids' => 217070 ]); if ($response->isError) { echo $response->error_code; echo $response->error_message; } if ($response->isOk) { print_r($response->data); } print_r($response->statusCode);
SkeekS CMS (Yii2) — fast, simple, effective!
skeeks.com | cms.skeeks.com | marketplace.cms.skeeks.com
统计信息
- 总下载量: 45
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-03-07