0.0.3 • Published 6 years ago

tesco-store-location-sdk v0.0.3

Weekly downloads
1
License
ISC
Repository
-
Last release
6 years ago

Tesco Location Service

Unofficial client for Tesco Labs Store Location API (https://devportal.tescolabs.com/docs/services/5731ed21611a4b2968547c5f/operations/5731edcc611a4b2968547c60)

Highly Experimental Client that can be subject of changes. Use on own risk!

How to use

const {TescoStoreLocationClient, StoreLocationQueryBuilder} = require('tesco-store-location-sdk').SDK

const queryBuilder = new StoreLocationQueryBuilder();

const subscriptionKey = 'YOUR_SUBSCRIPTION_KEY_FROM_DEV_PORTAL'

TescoStoreLocationClient
    .instance(subscriptionKey)
    .searchLocations(queryBuilder.ukTown("Welwyn Garden City").build())
    .then((result) => {
        console.log(result)
    })
    .catch((err) => {
        console.error(err)
    })