Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Develop
Test
Publish
Monetize
Engage users
Device specifications
Resources
Skip to main content
You can download a sample IAP web app here: To access the sample, start an HTTP server on your local machine. If you have python installed, you can use the python HTTP server:
  1. Unzip the download file.
  2. In a terminal window, navigate into the newly unzipped folder (IAPv2-web-app-sample).
  3. Enter python -m SimpleHTTPServer to start the python server.
For additional server options, see this Mozilla article. To run the sample:
  1. Open a browser at address http://localhost:8000.
  2. Follow the directions on the page to use the app

Sample Description

The index.html file in the sample contains the following content:
  1. Script tags to include the Amazon Services library and the test library. The Amazon Services library provides the IAP v2.0 functionality.
  2. Script tags to include the buttonclicker.js file.
  3. HTML for three buttons. The Button Clicker JavaScript file binds methods to the button actions.
The Button Clicker JavaScript file includes the following content: