This sample is provided to show a simple (and limited) use-case of the Pearson API SDK for Javascript.
This is a simple sample, and not a full-blown application. It demonstrates the simple use of the Pearson SDK using the Dictionary API to search for and retrieve data from the Dictionary API.
The sample utilizes a simple search form providing a 'headword' search on entries in the dictionaries. This can be modified in the lib/app.js
file to either change or extend the search to work against other search criteria.
By default, the sample does not use an apikey, so the only entries available are those from the 'sandbox' environment (entries begining in with letters 'a' through 'c'). To view all entries, you need to have a production apikey (available from developer.pearson.com), and then add your key in the lib/app.js
file.
The sample app makes use of handlebars as a simple template language. The ICanHandlbars package is used to to allow templates to be defined as a single page application. We use bootstrap to provide the page components, and jQuery to orchestrate. And of course, the Pearson API SDK :-)
Edit the lib\app.js
file to add your production key into the source (if you have/need one). Then simply serve the file index.html
through a web server, or load directly into a browser.
Known to work in Chrome, Firefox and Safari. Not tested on Internet Explorer.