Skip to content

Simple sample of using the Pearson SDK to deliver a simple dictionary viewer app

Notifications You must be signed in to change notification settings

PearsonAPI/PearsonSDKDictionarySample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PearsonAPI Dictionary Sample

This sample is provided to show a simple (and limited) use-case of the Pearson API SDK for Javascript.

About the sample

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 :-)

Running the Sample

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.

Browser Support

Known to work in Chrome, Firefox and Safari. Not tested on Internet Explorer.

About

Simple sample of using the Pearson SDK to deliver a simple dictionary viewer app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published