2017 © Pedro Peláez
 

library tesco-api-php

Api for tescolabs.

image

fritak/tesco-api-php

Api for tescolabs.

  • Friday, April 22, 2016
  • by Fritak
  • Repository
  • 1 Watchers
  • 1 Stars
  • 77 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 8 % Grown

The README.md

Library for communication with TESCO api.

This code is for communication with NEW tescolabs API., (*1)

I will update this library when they add new features., (*2)

INSTALLATION

composer require "fritak/tesco-api-php"

REQUIREMENTS

The minimum requirement is PHP 5.4 on your Web Server. Account on tescolabs page: https://devportal.tescolabs.com/signin, (*3)

SETUP

// For Grocery
$api = new TescoApi(new Config('first_key', 'second_key'));

SIMPLE USAGE

// Find product based on you QUERY.
$result = $api->findGroceryProduct('pizza');

foreach($result->getProducts() AS $product)
{
    // your code for product...
}

USAGE

// Find product based on you QUERY with limit 25, starting on 10.
$result = $api->findGroceryProduct('pizza', 25, 10);

// Total products
$result->getGrocery()->products->totals->all;

The Versions

22/04 2016

dev-master

9999999-dev https://github.com/fritak/tesco-api-php

Api for tescolabs.

  Sources   Download

MIT

The Requires

  • php >=5.4.0

 

22/04 2016

v1.0.2

1.0.2.0 https://github.com/fritak/tesco-api-php

Api for tescolabs.

  Sources   Download

MIT

The Requires

  • php >=5.4.0