New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tescojs

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tescojs

NodeJS wrapper for the Tesco Labs API

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

TescoJS

A wrapper script for the tesco labs API. Need to be registered at https://secure.techfortesco.com/tescoapiweb to continue

Usage

Download via npm

npm install tescojs

Require Library

var tescojs = require('tescojs');

Login


var loginDetails = {
	"email": "test@test.com",
	"password": "password",
	"appKey": "key",
	"devKey": "key",
}
tescojs.login(loginDetails, function(err, sessionKey){
	//returns a session key for all future functions
});

Search for a product by name or barcode. Will return page 1 by default

var options = {
	"product": '5000237112236' or "product": 'Ready Salted Crisps',
	"sessionKey": 'sessionKey',
	"pageNumber": '1'
}
tescojs.search(options, function(err, data){
	//returns an array of products
});

Keywords

tesco

FAQs

Package last updated on 18 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts