skvarovski/aliexpress-ru-open-api-sdk

dev-main 2023-02-26 20:12 UTC

This package is auto-updated.

Last update: 2024-04-26 22:47:36 UTC


README

Aliexpress Russia PHP API Client

Installation & Usage

Requirements

PHP 7.4 and later. Should also work with PHP 8.0.

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "vcs",
      "url": "https://github.com/skvarovski/aliexpress-ru-open-api-sdk.git"
    }
  ],
  "require": {
    "GIT_USER_ID/GIT_REPO_ID": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

<?php
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php');

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');




$apiInstance = new OpenAPI\Client\Api\OpenAsyncProductApiServiceApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client()
);
$body = array('key' => new \OpenAPI\Client\Model\OpenAsyncProductApiGetBrandListRequest()); // OpenAsyncProductApiGetBrandListRequest

try {
    $result = $apiInstance->openAsyncProductApiServiceGetBrandList($body);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling OpenAsyncProductApiServiceApi->openAsyncProductApiServiceGetBrandList: ', $e->getMessage(), PHP_EOL;
}

API Endpoints

All URIs are relative to https://openapi.aliexpress.ru

Class Method HTTP request Description
OpenAsyncProductApiServiceApi openAsyncProductApiServiceGetBrandList POST /api/v1/brand/get-brand-list
OpenAsyncProductApiServiceApi openAsyncProductApiServiceGetProducts POST /api/v1/product/get-products Метод получения продуктов
OpenAsyncProductApiServiceApi openAsyncProductApiServiceGetTasks GET /api/v1/tasks Метод получения списка задач на создание/обновление товаров
OpenAsyncProductApiServiceApi openAsyncProductApiServiceOfflineProducts POST /api/v1/product/offline Метод перевода продуктов в offline
OpenAsyncProductApiServiceApi openAsyncProductApiServiceOnlineProducts POST /api/v1/product/online Метод перевода продуктов в online
OpenAsyncProductApiServiceApi openAsyncProductApiServiceProductCreate POST /api/v1/product/create Метод создания продуктов
OpenAsyncProductApiServiceApi openAsyncProductApiServiceProductUpdateField POST /api/v1/product/update-field Метод обновления поля продукта
OpenAsyncProductApiServiceApi openAsyncProductApiServiceScrollProductByFilter POST /api/v1/scroll-product-by-filter
OpenAsyncProductApiServiceApi openAsyncProductApiServiceScrollShortProductByFilter POST /api/v1/scroll-short-product-by-filter
OpenAsyncProductApiServiceApi openAsyncProductApiServiceUpdateSkuPrice POST /api/v1/product/update-sku-price Метод обновления цены продукта по ску коду
OpenAsyncProductApiServiceApi openAsyncProductApiServiceUpdateSkuStock POST /api/v1/product/update-sku-stock Метод обновления стока продукта по ску коду

Models

Authorization

X-Auth-Token

  • Type: API key
  • API key parameter name: X-Auth-Token
  • Location: HTTP header

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen