Solved

linking to tracking information from tracking code

Posted on 2012-03-09
1
225 Views
Last Modified: 2012-06-27
Is there any api or plugin I can integrate on my site so that if I have a tracking number, it will determine what shipping company it is from, and link to that site's tracking information?

Thanks a million
0
Comment
Question by:hibbsusan
1 Comment
 
LVL 108

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 37705111
This might be doable, but I expect it would require something of a development effort.  The UPS tracking pages used to be GET-method requests - you could just plop a variable into a URL and read the page to get the tracking info.  Now that has been changed to a POST-method request, presumably in an effort to thwart attempts to find out where other people's packages are.  Logistics companies are understandably interested in keeping some of their information away from potentially bad actors.

I think if you ask the shipping companies for an API, you may be able to build this.  You would need to find the rules that differentiate the tracking numbers, then call the appropriate API to retrieve the shipping data.  The same script that calls the API would also format the shipping data for your use (maybe JSON or XML).  In computer science this is called a polymorphic adapter because a single script can adapt to many forms of external data and return a consistent response.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now