API SDK for OpenTrade Commerce API: Taobao, Alibaba, JD, 1688, Aliexpress, Ebay.

Overview

OtapiPhpClient

Create Client

$client = new OtClient($key, $secret, $lang);
  • key (Access Key)
  • secret (Secret for access key)
  • language (2 symbol lang identifier)

getBriefCatalog

Get full OTAPI catalog for supported providers

$client->getBriefCatalog('otc-46');
  • 'otc-46' is optional parameter if you what to get only specified tree.

runBulkSearchItems

Start bulk search

$client->getBulkSearchDecoded($parameters, $xmlParameters->getData());

$parameters

  • framePosition (offset for search, default 0)
  • frameSize (items amount for search, default 1000, max value 10000)

$xmlParameters

Filter for search

$xmlParameters = new OtXmlParameters();
$xmlParameters->setCategoryId('otc-46');

Otapi category Id for search $xmlParameters->setMinVolume(30); Min amount of sales

Method return answer with activityId for getting result

getBulkSearchItemsResult

$client->getBulkSearchItemsResult($activityId);

$activityId form runBulkSearchItems request

return json string with all data If Result IsFinished = FALSE repeat request. Answer is not ready.

getBulkSearch

$client->getBulkSearch($parameters, $xmlParameters->getData());

This method start bulk search and wait for answer. May take a long time (30 or more seconds).

getBulkSearchDecoded

$client->getBulkSearchDecoded($parameters, $xmlParameters->getData());

This method is similar to getBulkSearch. As answer, you will get JsonMachine object. Then you can use it in loop to parse all items.

$items  = $client->getBulkSearchDecoded($parameters, $xmlParameters->getData());
foreach ($items as $item){
    echo $item['Id'];
}

getItemFullInfo

$client->getItemFullInfo('627419924025');

627419924025 is itemId parameter.

return full item data for specified ItemId.

runBulkItems

Start bulk request for specified item Ids

$client->runBulkItems(['123','125','854']);

Array of ItemIds as method parameter

Return activityId for getBulkItemsResult method

getBulkItemsResult

$client->getBulkItemsResult($activityId);

$activityId form runBulkSearchItems request

return json string with all data If Result IsFinished = FALSE repeat request. Answer is not ready.

getBulkItemsAtOnce

$client->getBulkItemsAtOnce(['123','125','854']);

This method start bulk items (runBulkItems) and wait for answer. May take a long time (30 or more seconds).

getBulkItemsDecoded

$client->getBulkItemsDecoded(['123','125','854']);

This method is similar to getBulkItemsAtOnce. As answer, you will get JsonMachine object. Then you can use it in loop to parse all items.

You might also like...
Fatture in Cloud SDK (Software Development Kit) for PHP

FattureInCloud PHP SDK Request informations In every request description you will be able to find some additional informations about context, permissi

Laravel SDK for Sentry
Laravel SDK for Sentry

Sentry for Laravel Laravel integration for Sentry. Laravel Version Compatibility Laravel = 4.2.x is supported until 0.8.x Laravel = 5.7.x on PHP =

It's a PHP Application to simplify working with Google Sheets SDK for php.

About GoogleSheetsPHP It's a PHP Application to simplify working with Google Sheets SDK for php. Note: i used Slim 3 to construct the application but

Explicador e2Payments PHP SDK
Explicador e2Payments PHP SDK

This package seeks to help php developers implement the e2Payments APIs without much hustle. It is based on the REST API whose documentation

Laravel wrapper for the Facebook Graph PHP 8 SDK

Laravel Facebook Graph SDK Installation Getting started with Laravel Facebook Graph is easy - first, install the package via composer composer require

OneSignal PHP SDK

OneSignal SDK for PHP developers with fluent API and supports Laravel / Lumen out of the box.

2c2p payment gateway Redirect PHP-SDK
2c2p payment gateway Redirect PHP-SDK

2c2p payment gateway Redirect PHP-SDK

DigitalOcean API v2 client for Symfony and API Platform

DigitalOcean Bundle for Symfony and API Platform DunglasDigitalOceanBundle allows using the DigitalOcean API from your Symfony and API Platform projec

This package is a simple API laravel wrapper for Pokemontcg with a sleek Model design for API routes and authentication.

This package is a simple API laravel wrapper for Pokemontcg with a sleek Model design for API routes and authentication.

Releases(v1.0.5)
  • v1.0.5(Dec 9, 2021)

Owner
OpenTrade Commerce
OpenTrade Commerce
A PHP SDK for the GlobalSmartOTP API.

GlobalSmartOTP PHP SDK A PHP SDK for the GlobalSmartOTP API. Requirements PHP 7.4 or higher cURL Installation $ git clone [email protected]:GlobalSmartOT

GlobalSmartOTP 4 Oct 2, 2022
🤖 Telegram Bot API PHP SDK. Lets you build Telegram Bots easily! Supports Laravel out of the box.

Telegram Bot API - PHP SDK Telegram Bot PHP SDK lets you develop Telegram Bots in PHP easily! Supports Laravel out of the box. Telegram Bot API is an

Irfaq Syed 2.5k Jan 6, 2023
Official PHP SDK for interacting with the Knock API.

Knock PHP library Documentation See the documentation for PHP usage examples

Knock 4 Dec 16, 2022
Universal payments API SDK (UNOFFICIAL QIWI CLIENT)

Qiwi Php Client Especially for ?? Zorra Telecom and ?? Everyone else Привет Attention: At the moment the number of methods is very limited, they will

Ivan Terentev 2 Oct 25, 2022
Official repository of the AWS SDK for PHP (@awsforphp)

AWS SDK for PHP - Version 3 The AWS SDK for PHP makes it easy for developers to access Amazon Web Services in their PHP code, and build robust applica

Amazon Web Services 5.7k Jan 1, 2023
Mailgun's Official SDK for PHP

Mailgun PHP client This is the Mailgun PHP SDK. This SDK contains methods for easily interacting with the Mailgun API. Below are examples to get you s

Mailgun Team 1k Dec 23, 2022
可能是基于 hyperf 的最优雅的支付宝、微信支付 SDK 了

当前组件整体处于 beta 阶段 运行环境 php >= 7.3 composer hyperf >= 2.1 安装 composer require yansongda/hyperf-pay:~1.0.0 说明 发布配置文件 php bin/hyperf.php vendor:publish ya

yansongda 44 Dec 8, 2022
A Laravel package to help integrate Shopware PHP SDK much more easier

Shopware 6 Laravel SDK A Laravel package to help integrate Shopware PHP SDK much more easier Installation Install with Composer composer require sas/s

Shape & Shift 16 Nov 3, 2022
Minter Blockchain PHP SDK

About This is a pure PHP SDK for working with Minter blockchain Installation Minter Api Methods: getBalance getNonce send getAddresses getStatus getVa

Minter 24 Nov 21, 2022
The official PHP SDK for Webmarketer (app.webmarketer.io)

PHP SDK for Webmarketer The official PHP SDK for Webmarketer (app.webmarketer.io). Install To add this package, your project must meet several require

Webmarketer 5 Dec 13, 2021