Code Sample PlayPen (Tutorial Companion)

This ProgrammableWeb PlayPen is an example of how to operationalize any sample code that depends on an API key that you'd rather not reveal in source code. Instead of including the API key in the source code, prompt the user for his or her API key and store that key in HTML5 storage. All this code sample does is show how you can prompt the user, store their response in HTML5 storage, display the contents of HTML5 storage, clear the display, and clear the storage. Try it out with some dummy text (click the Input button) or cut n' paste this code into your own development environment.

Click here to view the matching tutorial on ProgrammableWeb