How to Use Amazon API With Twitter

Amazon and Twitter offer APIs that let you connect to the external websites and display the data on your own website. This feature is beneficial when you want to monetize your site with Amazon affiliate sales and promote the sales using the latest tweets about the product. Each API has its own specific syntax you use to add the data to your website, and you can display the data in an HTML iframe.

Instructions

    • 1

      Right-click the Web page you want to use to display the data. Click "Open With" and select the HTML editor you want to use.

    • 2

      Add two iframe tags to display the data. The first iframe displays the Amazon deals and the second iframe displays tweets associated with the product. The following code shows you how to create two iframes:

      <iframe id="amazon" src=""></iframe>
      <iframe id="twitter" src=""></iframe>

      You place the API search URL in the "src" property.

    • 3

      Add the Amazon API data. Open a Web browser and choose the widget you want to show from the Amazon website. Click the widget in the Amazon list, select the properties and get the code returned by Amazon. Place this code in the first Amazon iframe.

    • 4

      Add the Twitter URL to the second iframe. The Twitter URL searches for information regarding the Amazon product in the first iframe. Add the following URL to the "src" property of the iframe:

      http://search.twitter.com/search.json?q=AMAZONPRODUCT

      Replace "amazonproduct" with the name of the product you want to display.

    • 5

      Save the changes and open the page in your browser to test the new code changes.

Related Searches:

References

Resources

Comments

Related Ads

Featured