| bruce | |
|
|
I am going to have some fun on this meetup and post some of my blog articles that may be helpful to other web designers:
I think so, but I am not talking about the type of REST where you sleep. REST (Representational State Transfer) is a very cool and easy to use technology and is used on Amazon?s affiliate program. I was waiting for something like this, because in the old days, Amazon?s affiliate program was very clunky and full of flaws, but thanks to REST, the program has come a long way. When you added a book, you had to get all the garbage that came with it, all designed by Amazon. Each link resulted in an HTML <IFRAME> tag. Can you imagine little IFrames on a web page for each book? That is just ludicrous! That?s not at all what I wanted in an affiliate program. Plus, you had to add each one. That?s not good for SEO either. Now, with REST, you simply throw over an URL, loaded with some GET name/value pairs and Amazon gives you back an XML file. This XML file contains all types of cool information about the books including cover images, reviews, retail price, and more. What you do with that XML is totally up to you. I use PHP?s DOM methods at the Web Design Store to parse the XML, but you can use any language that you want. PHP has a cool function called GET_FILE_CONTENTS that will retrieve XML data from a URL. Another REST application is Twitter?s API, You can visit my Twitter page at http://twitter.com/po... Amazon?s web page has a great explanation of how to work with their REST API and they give you PHP examples as well. As a side note, if you are a SOAP whiz, then Amazon works with SOAP as well. See you guys next time! Bruce |