NAME
WebService::Tesco::API - Web service for the Tesco groceries API as announced:
http://www.tescolabs.com/?p=7171
SYNOPSIS
use WebService::Tesco::API;
my $tesco = WebService::Tesco::API->new( app_key => 'xxxxxx', developer_key => 'yyyyyy', debug => 1, );
my $result = $tesco->login({ email => 'test@test.com', password => 'password', });
DESCRIPTION
Web service for the Tesco groceries API, currently in beta. Register at: https://secure.techfortesco.com/tescoapiweb/ Terms of use: http://www.techfortesco.com/tescoapiweb/terms.htm
NAME
WebService::Tesco::API - Web service for the Tesco groceries API
VERSION
Version 0.01
Constructor
new()
Creates and returns a new WebService::Tesco::API object
my $tesco = WebService::Tesco::API->new(
app_key => 'xxxxxx',
developer_key => 'yyyyyy',
);
app_key => 'xxxxx'
Set the application key. This can be set up at: https://secure.techfortesco.com/tescoapiweb/
developer_key => 'yyyyyy'
Set the developer key. This can be set up at: https://secure.techfortesco.com/tescoapiweb/
debug => [0|1]
Show debugging information
METHODS
get($args)
General method for sending a GET request. Set $args->{secure} to use the https endpoint (required for certain requests). You shouldn't need to use this method directly
login({ email => 'test@test.com', password => 'password' })
Log in to the Tesco Grocery API It uses the https endpoint to send email and password. Returns a session key.
product_search({ searchtext => 'Turnip', extendedinfo => 'Y' })
Searches for products using text or barcode.
searchtext => 'Turnip'
Text to search for products, 9-digit Product ID, or 13-digit numeric barcode value.
AUTHOR
Willem Basson <willem.basson@gmail.com> David Hodgkinson <daveh@hodgkinson.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Willem Basson.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 189:
You forgot a '=back' before '=head1'