Solved

linking to tracking information from tracking code

Posted on 2012-03-09
1
227 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 109

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API (http://dictionary.reference.com/browse/API?s=t) has made its way into the popular lexicon of the English language.  A few years ago, …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

809 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