over 9 years ago
To make an OpenSocial request and parse the results of a response from any Open API can be quite time consuming, especially when you are not familiar with the Open API in question. Although the RESTful protocol of an Open API request with a JSON response format is already a great simplification compared to the Web Services and XSD Schema protocol. When mashing up Open APIs and Open Data, the greatest challenge is often how to properly build and send a request, and how to correctly parse and display the response data, even if in 90% of the cases a developer is looking for the same simple answer, often a list of results from a simple query.
The Simple SciVerse Search example above hides about 50 lines of code and reduces the SciVerse Content API call to ScienceDirect to precisely 7 lines of code, while enormously simplifying the call.
If you would like to add certain features that are currently not included in the Simple SciVerse Search API, go to Github and make the change, or send me an email to include the feature at developer at elsevier dot com.
With thanks to:
- Sam Adams, who wrote the original version of the SciVerse Search API during the Elsevier Dev8D 2011 Challenge, winning the 1st prize of $1500;
- Mahendra Mahey and DevCSI for organizing Dev8D; and
- JISC for sponsoring Dev8D.
Sam Adams original sciverse-search.js: https://bitbucket.org/sea36/sciverse-dev8d/overview