2017 © Pedro Peláez
 

library rakuten-api

Rakuten PHP API SDK

image

bsushil/rakuten-api

Rakuten PHP API SDK

  • Thursday, July 30, 2015
  • by bSushil
  • Repository
  • 1 Watchers
  • 0 Stars
  • 105 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

Rakuten Web Service SDK for PHP

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)

Installation:

{
    "require": {
        "bsushil/rakuten-api": "dev-master"
    }
}

For API information and the document, refer to the original (and official) library., (*2)

Usage:

        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;
        }

The Versions

30/07 2015

dev-master

9999999-dev https://github.com/bSushil/rakuten

Rakuten PHP API SDK

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

by Sushil Bajimaya

search products rakuten