Hewlett Packard sponsored a coding contest to win a very nice laptop! The goal was to consume
was to consume two restful winaspectre web services. Some of the entries on Twitter
using the #winaspectre hash. Congratulations to all the winners!
NOTE: The JSONP Web Service has since gone down.
My entry while submitted was not complete and I thought I would complete the project discussing where I went wrong. My goal was to list out
the speakers creating hyperlinks on their name and lecture titles. When their name is clicked it would search for them on LinkedIn and when
their lecture title was clicked it would pull back Google search results. I ran into several problems while writing my submitted effort. My
two biggest problems where that I had never before used a JSONP web service before or the LinkedIn API. Between the two I wasted several
hours trying to make a standard JSON web service call and trying to anonymously query LinkedIn.
My submission is shown below and our goal will be to go over the code discuss where I’ve gone wrong and how to achieve something better. The
first change I would make is to list all the speakers and their lecture titles. Next I would search for the first speaker listed on LinkedIn
and display the results. The third change is to provide the option of logging into LinkedIn. Logging in will give the user better and more
detailed information. Once I have done this I will discuss the changes that I made in Part 2.
It would be beneficial for you to become familiar with the LinkedIn APIs and to make sure you are
ready to get started. Do not forget to setup your API key! JQuery is the JavaScript API that I am using and is very easy to use if you have basic knowledge of
Cascading Style Sheets (CSS).
In Part 2 we will cleanup the code, make the speaker list display by default and
improve how the LinkedIn login is handled.