fritak/tesco-api-php

Api for tescolabs.

Installs: 178

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/fritak/tesco-api-php

v1.0.2 2016-04-22 13:58 UTC

This package is not auto-updated.

Last update: 2025-09-25 06:01:38 UTC


README

This code is for communication with NEW tescolabs API.

I will update this library when they add new features.

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

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;