skeeks / yii2-ozon-seller-api

yii2 ozon seller api

1.0.0 2023-01-04 20:14 UTC

This package is not auto-updated.

Last update: 2024-09-13 02:58:57 UTC


README

信息

安装

通过以下方式安装此扩展是首选方法:composer

运行以下命令之一:

php composer.phar require --prefer-dist skeeks/yii2-ozon-seller-api "*"

或者添加

"skeeks/yii2-ozon-seller-api": "*"

如何使用

//App config
[
    'components'    =>
    [
    //....
        'ozoenSellerApi' =>
        [
            'class'                 => 'skeeks\yii2\ozonsellerapi\OzonSellerApiClient',
            'client_id'   => '688772',
            'api_key'   => '0793c579-09aa-4fe1-bd7f-98ddd779a162',
            'timeout'               => 12,
        ],
    //....
    ]
]

示例

地址提示

$response = \Yii::$app->ozoenSellerApi->;
print_r($response); //Array response data

skeeks!
SkeekS CMS (Yii2) — 快速、简单、高效!
skeeks.com | cms.skeeks.com