V3toys yii2 api

V3toys yii2 api

v3toys/yii2-api

Семенов Александр

Install

V3toys yii2 api

@разработчик решения

Publication time: Wednesday, December 28, 2016 (8 months ago)

Created by: Семенов Александр

Category: Прочее

Актуальная версия: 1.0.1
Dec 6, 2016, 7:18:04 PM (9 months ago)

Packagist: v3toys/yii2-api

: https://github.com/v3project/yii2-api

: 157 (Per month: 33)

Тип: Компонент

V3toys yii2 api

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!
SkeekS CMS (Yii2) — fast, simple, effective!
skeeks.com | cms.skeeks.com | marketplace.cms.skeeks.com

CHANGELOG

1.0.0-beta

  • Добавлен заказ в 1 клик

1.0.0-alpha

  • Can be used

All Comments (0)
No Comments

dev-master — Dec 6, 2016, 7:18:04 PM (9 months ago)

1.0.1 — Dec 6, 2016, 7:18:04 PM (9 months ago)

1.0.0 — Aug 8, 2016, 6:26:03 PM (a year ago)

1.0.0-beta — Aug 8, 2016, 6:26:03 PM (a year ago)

1.0.0-rc1 — Aug 8, 2016, 6:26:03 PM (a year ago)

1.0.0-alpha — Jul 30, 2016, 10:28:33 AM (a year ago)

Стандартная установка:

Добавьте composer.json файл вашего проекта:

"v3toys/yii2-api": "*"

Запустите обновление зависимостей


Читать про обнолвение SkeekS CMS