2017 © Pedro Peláez
 

yii2-extension yii2-v3project-api

V3toys yii2 api

image

v3toys/yii2-v3project-api

V3toys yii2 api

  • Saturday, October 8, 2016
  • by skeeks-semenov
  • Repository
  • 1 Watchers
  • 0 Stars
  • 157 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

New v3project yii2 api

Info

  • http://api.v3project.ru/v5/schema.yaml
  • http://jsonviewer.stack.hu/
  • http://swagger-ui.v3project.ru/#/

Installation

The preferred way to install this extension is through composer., (*1)

add to composer.json, (*2)

"repositories": [
    {
        "type": "git",
        "url":  "https://github.com/v3toys/yii2-v3project-api.git"
    }
],

Either run, (*3)

php composer.phar require --prefer-dist v3toys/yii2-v3project-api "*"

or add, (*4)

"v3toys/yii2-v3project-api": "*"

How to use

//App config
[
    'components'    =>
    [
    //....
        'v3projectApi' =>
        [
            'class'             => 'v3toys\v3project\api\Api',
            'affiliate_key'     => 'fff',
            'timeout'           => 12,
        ],
    //....
    ]
]

Examples


$response = \Yii::$app->v3projectApi->send('/product/find', [ 'filters' => [ 'v3p_product_ids' => [186893] ] ]); or $response = \Yii::$app->v3projectApi->productFind([ 'filters' => [ 'v3p_product_ids' => [186893] ], 'params' => [ 'format' => 'full' ] ]); print_r($response->httpClientRequest->url); //Full api url print_r($response->httpClientRequest->data); //Request data print_r($response->httpClientRequest->method); //Request method print_r($response->httpClientRequest->headers); //Request headers print_r($response->httpClientResponse->statusCode); //Server response code print_r($response->httpClientResponse->content); //Original api response if ($response->isError) { print_r($response->errorMessage); //Расшифровка кода print_r($response->errorData); print_r($response->errorCode); } else { print_r($response->data); //Array response data }

skeeks!
SkeekS CMS (Yii2) — fast, simple, effective!
skeeks.com | cms.skeeks.com | marketplace.cms.skeeks.com, (*5)

The Versions

08/10 2016

dev-master

9999999-dev http://www.skeeks.com/

V3toys yii2 api

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

api framework app yii skeeks

08/10 2016

1.0.1

1.0.1.0 http://www.skeeks.com/

V3toys yii2 api

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

api framework app yii skeeks

08/10 2016

1.0.0-rc

1.0.0.0-RC http://www.skeeks.com/

V3toys yii2 api

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

api framework app yii skeeks

18/09 2016

1.0.0

1.0.0.0 http://www.skeeks.com/

V3toys yii2 api

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

api framework app yii skeeks

18/09 2016

1.0.0-alpha

1.0.0.0-alpha http://www.skeeks.com/

V3toys yii2 api

  Sources   Download

BSD-3-Clause

The Requires

 

by Semenov Alexander

api framework app yii skeeks