dev-master
9999999-dev https://github.com/bSushil/rakutenRakuten PHP API SDK
MIT
The Requires
- php >=5.4.0
by Sushil Bajimaya
search products rakuten
Wallogit.com
2017 © Pedro Peláez
Rakuten PHP API SDK
This package is another version for https://github.com/rakuten-ws/rws-php-sdk/ with support of PHP namespace. Works well with Yii2 and Laravel., (*1)
{
"require": {
"bsushil/rakuten-api": "dev-master"
}
}
For API information and the document, refer to the original (and official) library., (*2)
use Rakuten\Client;
$client = new Client();
$client->setApplicationId(apiKey);
$client->setAffiliateId(affiliateID);
$response = $client->execute('IchibaItemSearch', ['keyword'=>$searchKey, 'hits'=>$pageSize, 'page'=>$page]);
$responseCode = $response->getCode();
if($responseCode != 200)
{
$arReturn['message'] = $response->getMessage();
}
else
{
$data = $response->getData();
$arData = [];
$arData['totalRecords'] = $data['count'];
$arData['pageCount'] = $data['pageCount'];
$arData['data'] = $data['Items'];
$arReturn['data'] = $arData;
}
Rakuten PHP API SDK
MIT
search products rakuten