2017 © Pedro Peláez
 

library bestbuy

High level PHP client for the Best Buy API

image

bestbuy/bestbuy

High level PHP client for the Best Buy API

  • Friday, September 8, 2017
  • by troymccabe
  • Repository
  • 4 Watchers
  • 5 Stars
  • 825 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 6 Versions
  • 76 % Grown

The README.md

Best Buy SDK for PHP Build Status

License Latest Stable Version Coverage Status Total Downloads, (*1)

This is a high-level PHP client for the Best Buy developer API., (*2)

Getting Started

  1. Sign-up for a developer API Key at https://developer.bestbuy.com/
  2. Install the package, (*3)

    • Using the command line
      composer require bestbuy/bestbuy
    • Using composer.json
      Add "bestbuy/bestbuy": "^1.0" inside of the require part of your composer.json file:, (*4)

      "require": {
      "bestbuy/bestbuy": "^1.0"
      }
      
  3. Use the package. There are several ways to provide the key to the Client:
    • Set an environment variable of BBY_API_KEY to your key and invoke the method
      $bby = new \BestBuy\Client();
    • Send the key in as a string when invoking the method
      $bby = new \BestBuy\Client('YOURKEY');
    • Send the key in as part of an object when invoking the method
      $bby = new \BestBuy\Client(['key' => 'YOURKEY']);

Documentation

Store Availability

$bby->availability(int|int[]|string $skus, int|int[]|string $stores, [array $responseConfig = []]);

  1. A single SKU/Store #
    $bby->availability(6354884, 611);
  2. An array of SKUs/Store #s
    $bby->availability([6354884, 69944141], [611, 281]);
  3. A valid query for SKUs/Stores
    $bby->availability('name=Star*', 'area(55347, 25)');

Product Categories

$bby->categories(string $search = '', [array $responseConfig = []]);

  1. All categories
    $bby->categories();
  2. A single category
    $bby->categories('cat00000');
  3. A query for categories
    $bby->categories('name=Home*');

Open Box Products

$bby->openBox(int|int[]|string $search = '', [array $responseConfig = []]);

  1. All open box products
    $bby->openBox();
  2. A single product
    $bby->openBox(6354884);
  3. An array of products
    $bby->openBox([6354884, 69944141]);
  4. A query
    $bby->openBox('category.id=cat00000');

Product Information

$bby->products(int|string $search = '', [array $responseConfig = []]);

  1. All products
    $bby->products();
  2. A single product
    $bby->products(6354884);
  3. A query for products
    $bby->products('name=Star*');

Product Recommendations

$bby->recommendations(string $type, int|string $categoryIdOrSku = null, [array $responseConfig = []]);

  1. Trending or Most Viewed products
    $bby->recommendations(\BestBuy\Client::RECOMMENDATIONS_TRENDING);
    $bby->recommendations(\BestBuy\Client::RECOMMENDATIONS_TRENDING, 'cat00000');
  2. Similar or Also Viewed products
    $bby->recommendations(\BestBuy\Client::RECOMMENDATIONS_SIMILAR, 6354884);

Product Reviews

$bby->reviews(int|string $search = '', [array $responseConfig = []]);

  1. All reviews
    $bby->reviews();
  2. A single review
    $bby->reviews(69944141);
  3. A query for reviews
    $bby->reviews('comment=purchase*');

Stores

$bby->stores(int|string $search = '', [array $responseConfig = []]);

  1. All stores
    $bby->stores();
  2. A single store
    $bby->stores(611);
  3. A query for stores
    $bby->stores('name=eden*');

Version

$bby->version();

The Versions

08/09 2017

dev-master

9999999-dev https://github.com/BestBuyAPIs/bestbuy-sdk-php

High level PHP client for the Best Buy API

  Sources   Download

MIT GPL-2.0

The Requires

 

The Development Requires

by Troy McCabe
by Eric Caron

api best buy bestbuy retail electronics product reviews bbyopen

08/09 2017

v1.0.4

1.0.4.0 https://github.com/BestBuyAPIs/bestbuy-sdk-php

High level PHP client for the Best Buy API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Troy McCabe
by Eric Caron

api best buy bestbuy retail electronics product reviews bbyopen

11/04 2017

v1.0.3

1.0.3.0 https://github.com/BestBuyAPIs/bestbuy-sdk-php

High level PHP client for the Best Buy API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Troy McCabe
by Eric Caron

api best buy bestbuy retail electronics product reviews bbyopen

09/04 2017

v1.0.2

1.0.2.0 https://github.com/BestBuyAPIs/bestbuy-sdk-php

High level PHP client for the Best Buy API

  Sources   Download

MIT

The Requires

 

The Development Requires

by Troy McCabe
by Eric Caron

api best buy bestbuy retail electronics product reviews bbyopen

25/05 2016

v1.0.1

1.0.1.0 https://github.com/BestBuyAPIs/bestbuy-sdk-php

High level PHP client for the Best Buy API

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by Troy McCabe
by Eric Caron

api best buy bestbuy retail electronics product reviews

22/11 2015

v1.0.0

1.0.0.0 https://github.com/BestBuyAPIs/bestbuy-sdk-php

High level PHP client for the Best Buy API

  Sources   Download

GPL-2.0

The Requires

 

The Development Requires

by Troy McCabe

api best buy bestbuy retail electronics product reviews