The Wicked Ways of Tesco

After lots of hair-loss, we finally have the API working, thanks to this blog post: http://www.whatdidi.com/WhatDidI/Welcome.html we've figured out what was wrong with Tesco API.

Summary:
  • It turns out Tesco are currently migrating their users from an old system (Bob) to a new system.
  • Some (end-user) customers are on their old system (which doesn't work with their API) whilst some users are on their new system, which does.
  • Somewhat inexplicably, new users are put on their old system; so neither of the accounts we signed up for today, will work with the API
  • Thankfully, Craig signed up for an account 2 months ago, which works!
What this means:
  • Not every user will be able to use our service :(, probably users who have not yet signed up for Tesco.com will not be migrated yet.
  • But, we will at least be able to demo.
  • And, it sounds like the migration should be finished by the end of June (in theory).
Next steps:
  • Build the product :s

Filed under  //  dev   phil   writing reciply  
Comments (0)
Posted by Reciply 

Getting Started With Tesco Applications

Finding out about Tesco's API is a little trickier than it should be, the steps you need to take:

A first step to checking that everything working is to issue the LOGIN command. To do this you need a tesco.com (customer) account: http://www.tesco.com/superstore/default.aspx. With these four bits of information you can try to login (as a customer), replacing <these_terms> with the appropriate details.

This should get you a response like this: 

JSON:
  "StatusCode": 0,
  "StatusInfo": "Processed and Logged OK",
  "BranchNumber": "0",
  "CustomerId": "<id>",
  "CustomerName": "Mr Roberts",
  "SessionKey": "<key>",
  "ChosenDeliverySlotInfo": "No delivery slot is reserved.",
  "CustomerMessageOfTheDay": ""
}

You can then use the session key in your application.

Filed under  //  dev   phil   writing reciply  
Comments (0)
Posted by Reciply