SlideShare a Scribd company logo
Programming with Amazon, Google, and eBay Chunju Tseng (Lu) [email_address]
Outline Web Services in a nutshell AJAX Overview of Amazon, Google, and Ebay APIs More Web Services and Mashup Lab Session: Web Services Programming
What is Web Services? Web Services: A new way of reuse/integrate third party softwre or legacy system No matter where the software is, what platform it residents, or which language it was written in Based on XML and Internet protocols (HTTP, SMTP … ) Benefits: Ease of integration Develop applications faster
Web Services Architecture Simple Object Access Protocol (SOAP) Web Service Description Language (WSDL) Universal Description, Discovery and Integration (UDDI)
New Breeds of Web Services Representational State Transfer (REST) Use HTTP Get method to invoke remote services (not XML) The response of remote service can be in XML or any textual format Benefits: Easy to develop Easy to debug (with standard browser) Leverage existing web application infrastructure We will focus on REST services programming in the lab session
Server Responses in REST Really Simple Syndication (RSS, Atom) XML-based standard Designed for news-oriented websites to “Push” content to readers Excellent to monitor new content from websites JavaScript Object Notation (JSON) Lightweight data-interchange format Human readable and writable and also machine friendly Wide support from most languages (Java, C, C#, PHP, Ruby, Python…)
JSON Example http://www.json.org/example.html
Rich Interactivity Web - AJAX AJAX: Asynchronous JavaScript + XML  AJAX incorporates: standards-based presentation using  XHTML and CSS ; dynamic display and interaction using the  Document Object Model ; data interchange and manipulation using  XML and XSLT ; asynchronous data retrieval using  XMLHttpRequest ; and  JavaScript  binding everything together. Examples: http://www.gmail.com http://www.kiko.com More info: http://www.adaptivepath.com/publications/essays/archives/000385.php
AJAX Application Model
Amazon Web Services (AWS) Amazon E-Commerce Service Search catalog, retrieve product information, images and customer reviews Retrieve wish list, wedding registry… Search seller and offer Alexa Services Retrieve information such as site rank, traffic rank, thumbnail, related sites amount others given a target URL Amazon Historical Pricing Programmatic access to over three years of actual sales data Amazon Simple Queue and Storage Service A distributed resource manager to store web services results Amazon Elastic Compute Cloud Sell computing capacity by the amount you use
Google Web APIs Google has a long list of APIs http://code.google.com/apis/ Google Search AJAX Search API SOAP Search API (deprecated) Custom search engine with Google Co-op Google Map API Google Data API (GData) Blogger, Google Base, Calendar, Gmail, Spreadsheets, and a lot more Google Talk XMPP for communication and IM Google Translation  (http://www.oreillynet.com/pub/h/4807) Many more undocumented/unlisted APIs to be discovered in Google Blog
eBay API Buyers: Get the current list of eBay categories View information about items listed on eBay Display eBay listings on other sites Leave feedback about other users at the conclusion of a commerce transaction Sellers: Submit items for listing on eBay Get high bidder information for items you are selling Retrieve lists of items a particular user is currently selling through eBay Retrieve lists of items a particular user has bid on
Other Services/APIs Providers Yahoo!  http://developer.yahoo.com/ Search (web, news, video, audio, image…) Flickr, del.icio.us, MyWeb, Answers API Windows Live  http://msdn2.microsoft.com/en-us/live/default.aspx Search (SOAP, REST) Spaces (blog), Virtual Earth, Live ID Wikipedia Downloadable database http://en.wikipedia.org/wiki/Wikipedia:Technical_FAQ#Is_it_possible_to_download_the_contents_of_Wikipedia.3F Many more at Programmableweb.com http://www.programmableweb.com/apis
Services by Category Search Google, MSN, Yahoo E-Commerce Amazon, Ebay, Google Checkout TechBargain, DealSea, FatWallet Mapping Google, Yahoo!, Microsoft Community Blogger, MySpace, MyWeb del.icio.us, StumbleUpon Photo/ Video YouTube, Google Video, Flckr Identity/ Authentication Microsoft, Google, Yahoo News Various news feed websites including Reuters, Yahoo! and many more.
Mashup A Novel Form of Web Reuse “ A mashup is a website or application that combines content from more than one source into an integrated experience.”  – Wikipedia API X + API Y = mashup Z Business model: Advertisement
Mashup: Weather Bonk http://www.weatherbonk.com/weather/index.jsp APIs: Google AdWords + Google Maps + hostip.info + MS Virtual Earth + NASA + NOAA Weather Service + WeatherBug + Yahoo Geocoding + Yahoo Maps + Yahoo Traffic
Lab Session: Amazon, Google, EBay APIs Required Software: Eclipse IDE V 3.21  (http://eclipse.org) Amazon API ( http://www.amazon.com/gp/aws/landing.html ) Amazon API Playground  (http://awszone.com)
Setup NetBeans with Amazon Install Eclipse IDE for Java http://www.eclipse.org/ Register Amazon subscription ID http://www.amazon.com/gp/aws/landing.html Download Amazon Java sample Create project Install necessary libraries Execute Amazon code sample Main.java
Retrieve Customer Information CustomerContentSearch Give name to retrieve customer ID CustomerContentLookup Give customer ID Request WishList information ResponseGroup=CustomerInfo, CustomerLists Receive WishList ID Use AWSzone.com!
Retrieve Customer WishList and Response Manipulation ListLookup Give list ID and type to retrieve WishList content with a simple browser (REST) ResponseGroup=ListItems,ListInfo Result shows in XML format ListLookup with xml-to-text XSLT Give custom XSL to manipulate response Style=http://www.u.arizona.edu/~chunju/text.xsl&ContentType=text/plain ListLookup with xml-to-html XSLT ResponseGroup=ListItems,ListInfo,Images,SalesRank,ItemAttributes Style=http://www.u.arizona.edu/~chunju/html.xsl&ContentType=text/html
Access Amazon REST Service with Jakarta HttpClient  Download & install necessary libraries Jakarta HttpClient, Codec JUnit Write first Java program in NetBeans Use previous REST invocation strings Print Amazon response in console Resources: http://jakarta.apache.org/commons/index.html http://www.junit.org/ http://www.u.arizona.edu/~chunju/HttpClientMain.java
Other Resources Java Web Services Developer Pack http://java.sun.com/webservices/downloads/webservicespack.html Consuming Web Services with NetBeans http://www.javapassion.com/planning/handsonbyol/netbeanswebservices/ XSLT Tutorial http://www.w3schools.com/xsl/

More Related Content

PPTX
REST API
PDF
Building event driven serverless apps by Danilo Poccia at Codemotion Dubai
PPTX
Understanding REST APIs in 5 Simple Steps
PPTX
Day02 a pi.
PPTX
Doing More with Less: Mash Your Way to Productivity
PDF
O'Reilly SACon San Jose, CA - 2019 - API design tutorial
PDF
O reilly sacon2018nyc - restful api design - master - v1.0
PDF
Mind The Gap - Mapping a domain model to a RESTful API - OReilly SACon 2018, ...
REST API
Building event driven serverless apps by Danilo Poccia at Codemotion Dubai
Understanding REST APIs in 5 Simple Steps
Day02 a pi.
Doing More with Less: Mash Your Way to Productivity
O'Reilly SACon San Jose, CA - 2019 - API design tutorial
O reilly sacon2018nyc - restful api design - master - v1.0
Mind The Gap - Mapping a domain model to a RESTful API - OReilly SACon 2018, ...

What's hot (15)

PDF
API Design Methodology - Mike Amundsen, Director of API Architecture, API Aca...
PPTX
Design Beautiful REST + JSON APIs
PDF
Building APIs in an easy way using API Platform
PPT
Mashups MAX 360|MAX 2008 Unconference
PPTX
Best practices for RESTful web service design
PPSX
Rest api standards and best practices
PDF
The ultimate api checklist by Blendr.io
PPTX
What is an API?
PDF
Building Beautiful REST APIs in ASP.NET Core
PPTX
PPTX
introduction about REST API
PPTX
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
PPTX
CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston
PPTX
Understanding and programming the SharePoint REST API
API Design Methodology - Mike Amundsen, Director of API Architecture, API Aca...
Design Beautiful REST + JSON APIs
Building APIs in an easy way using API Platform
Mashups MAX 360|MAX 2008 Unconference
Best practices for RESTful web service design
Rest api standards and best practices
The ultimate api checklist by Blendr.io
What is an API?
Building Beautiful REST APIs in ASP.NET Core
introduction about REST API
SPCA2013 - Developing Provider-Hosted Apps for SharePoint 2013
CSOM (Client Side Object Model). Explained @ SharePoint Saturday Houston
Understanding and programming the SharePoint REST API
Ad

Viewers also liked (18)

PPT
Organizing Six Sigma
PPT
Al Startistic Performance Marketing Of Affiliate
PDF
The Toolbox: 16 Tool That Will Help You Save Time, Increase Prodctivity, and ...
PDF
Problem Solving A3 - How to solve tough impediments
PPTX
A3 - Quick Problem Solving
PDF
Product Ownership Challenges
PDF
What is Software Development Productivity Anyway?
PDF
Software economics: tradeoffs of decoupled softwre
PDF
Value Stream Manager concept applied to Software Product Development
PPTX
Understanding and improving software productivity
PDF
Identifying and managing waste in software product development
PDF
Patterns Of Kaizen & A3 Thinking
PPTX
Agile Metrics, Value, and Softwre
PPTX
Advanced problems solving using A3 Report - January 2017
PDF
A3 Management: Effective Problem Solving via PDSA
PDF
Applying PDCA, A3 Thinking & Problem Solving
PDF
Nguoi Tieu Dung
PDF
24h.com.vn - Tai Lieu KH
Organizing Six Sigma
Al Startistic Performance Marketing Of Affiliate
The Toolbox: 16 Tool That Will Help You Save Time, Increase Prodctivity, and ...
Problem Solving A3 - How to solve tough impediments
A3 - Quick Problem Solving
Product Ownership Challenges
What is Software Development Productivity Anyway?
Software economics: tradeoffs of decoupled softwre
Value Stream Manager concept applied to Software Product Development
Understanding and improving software productivity
Identifying and managing waste in software product development
Patterns Of Kaizen & A3 Thinking
Agile Metrics, Value, and Softwre
Advanced problems solving using A3 Report - January 2017
A3 Management: Effective Problem Solving via PDSA
Applying PDCA, A3 Thinking & Problem Solving
Nguoi Tieu Dung
24h.com.vn - Tai Lieu KH
Ad

Similar to Programming With Amazon, Google, And E Bay (20)

PDF
Open Ap Is State Of The Market
PPTX
Trends in Web APIs Layer 7 API Management Workshop London
PDF
Web Services
PPT
Open APIs and the Semantic Web 2011
PDF
Session 8 Android Web Services - Part 1.pdf
PPTX
Web-Services-web services-20052025-051043pm.pptx
PPT
Web 2 0 Tools
PPT
Report From JavaOne 2009 - part 3
PDF
Mobile and API identity – The New Challenges
PPT
Web 2 0 Fullfeatures
PPT
Web 2 0 Fullfeatures
PDF
Fundamentals of Web Development For Non-Developers
PPT
Web servicesoverview
PDF
Past, Present and Future of APIs of Mobile and Web Apps
PPT
Open API Ecosystem Overview: December 2010
PDF
Web APIs: The future of software
PPT
Web 2 0 Fullfeatures
PDF
Applicaton Development using RESTful APIs
PPT
Soap and Rest
PDF
zendframework2 restful
Open Ap Is State Of The Market
Trends in Web APIs Layer 7 API Management Workshop London
Web Services
Open APIs and the Semantic Web 2011
Session 8 Android Web Services - Part 1.pdf
Web-Services-web services-20052025-051043pm.pptx
Web 2 0 Tools
Report From JavaOne 2009 - part 3
Mobile and API identity – The New Challenges
Web 2 0 Fullfeatures
Web 2 0 Fullfeatures
Fundamentals of Web Development For Non-Developers
Web servicesoverview
Past, Present and Future of APIs of Mobile and Web Apps
Open API Ecosystem Overview: December 2010
Web APIs: The future of software
Web 2 0 Fullfeatures
Applicaton Development using RESTful APIs
Soap and Rest
zendframework2 restful

More from Phi Jack (20)

PDF
Vietnam Retail Store Modern Trade Trend 2022.pdf
PDF
K-Beauty E-catalog
PDF
Market Research on Beauty Industry in Vietnam
PDF
Hành Vi Người Dùng Internet Vietnam 2015 - Google
PDF
Rocket Internet 2014 & Q1 2015 Results Report
PDF
Hành vi mua sắm Online của Phụ nữ Châu Á
PPTX
Zara's Fast-Fashion Edge
PDF
The vietnamese seafood sector - A value chain analysis
PDF
Vietnam Retail Market Report, Nielsen
PDF
ID.com's prospectus for IPO
PDF
Color theory
PDF
China E-commerce Analytics [Credit Suisse]
PDF
How Businesses Fare with Daily Deals: A Multi-Site Analysis of Groupon, Livin...
PPT
User behavior
PPT
Buoi Thuyet Trinh Philip Kotler
PDF
Huong Dan Ap Dung ISO 9001
PDF
FinalStyle Ms Excel
PDF
Google Story
PDF
e-Marketing
PDF
Strategic e-Marketing
Vietnam Retail Store Modern Trade Trend 2022.pdf
K-Beauty E-catalog
Market Research on Beauty Industry in Vietnam
Hành Vi Người Dùng Internet Vietnam 2015 - Google
Rocket Internet 2014 & Q1 2015 Results Report
Hành vi mua sắm Online của Phụ nữ Châu Á
Zara's Fast-Fashion Edge
The vietnamese seafood sector - A value chain analysis
Vietnam Retail Market Report, Nielsen
ID.com's prospectus for IPO
Color theory
China E-commerce Analytics [Credit Suisse]
How Businesses Fare with Daily Deals: A Multi-Site Analysis of Groupon, Livin...
User behavior
Buoi Thuyet Trinh Philip Kotler
Huong Dan Ap Dung ISO 9001
FinalStyle Ms Excel
Google Story
e-Marketing
Strategic e-Marketing

Recently uploaded (20)

PDF
Spectral efficient network and resource selection model in 5G networks
PDF
Electronic commerce courselecture one. Pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PDF
Empathic Computing: Creating Shared Understanding
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
sap open course for s4hana steps from ECC to s4
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Approach and Philosophy of On baking technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Machine Learning_overview_presentation.pptx
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Spectral efficient network and resource selection model in 5G networks
Electronic commerce courselecture one. Pdf
Programs and apps: productivity, graphics, security and other tools
Digital-Transformation-Roadmap-for-Companies.pptx
Review of recent advances in non-invasive hemoglobin estimation
Reach Out and Touch Someone: Haptics and Empathic Computing
Assigned Numbers - 2025 - Bluetooth® Document
Empathic Computing: Creating Shared Understanding
gpt5_lecture_notes_comprehensive_20250812015547.pdf
sap open course for s4hana steps from ECC to s4
The Rise and Fall of 3GPP – Time for a Sabbatical?
Approach and Philosophy of On baking technology
Machine learning based COVID-19 study performance prediction
Unlocking AI with Model Context Protocol (MCP)
Chapter 3 Spatial Domain Image Processing.pdf
Dropbox Q2 2025 Financial Results & Investor Presentation
Per capita expenditure prediction using model stacking based on satellite ima...
Machine Learning_overview_presentation.pptx
The AUB Centre for AI in Media Proposal.docx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

Programming With Amazon, Google, And E Bay

  • 1. Programming with Amazon, Google, and eBay Chunju Tseng (Lu) [email_address]
  • 2. Outline Web Services in a nutshell AJAX Overview of Amazon, Google, and Ebay APIs More Web Services and Mashup Lab Session: Web Services Programming
  • 3. What is Web Services? Web Services: A new way of reuse/integrate third party softwre or legacy system No matter where the software is, what platform it residents, or which language it was written in Based on XML and Internet protocols (HTTP, SMTP … ) Benefits: Ease of integration Develop applications faster
  • 4. Web Services Architecture Simple Object Access Protocol (SOAP) Web Service Description Language (WSDL) Universal Description, Discovery and Integration (UDDI)
  • 5. New Breeds of Web Services Representational State Transfer (REST) Use HTTP Get method to invoke remote services (not XML) The response of remote service can be in XML or any textual format Benefits: Easy to develop Easy to debug (with standard browser) Leverage existing web application infrastructure We will focus on REST services programming in the lab session
  • 6. Server Responses in REST Really Simple Syndication (RSS, Atom) XML-based standard Designed for news-oriented websites to “Push” content to readers Excellent to monitor new content from websites JavaScript Object Notation (JSON) Lightweight data-interchange format Human readable and writable and also machine friendly Wide support from most languages (Java, C, C#, PHP, Ruby, Python…)
  • 8. Rich Interactivity Web - AJAX AJAX: Asynchronous JavaScript + XML AJAX incorporates: standards-based presentation using XHTML and CSS ; dynamic display and interaction using the Document Object Model ; data interchange and manipulation using XML and XSLT ; asynchronous data retrieval using XMLHttpRequest ; and JavaScript binding everything together. Examples: http://www.gmail.com http://www.kiko.com More info: http://www.adaptivepath.com/publications/essays/archives/000385.php
  • 10. Amazon Web Services (AWS) Amazon E-Commerce Service Search catalog, retrieve product information, images and customer reviews Retrieve wish list, wedding registry… Search seller and offer Alexa Services Retrieve information such as site rank, traffic rank, thumbnail, related sites amount others given a target URL Amazon Historical Pricing Programmatic access to over three years of actual sales data Amazon Simple Queue and Storage Service A distributed resource manager to store web services results Amazon Elastic Compute Cloud Sell computing capacity by the amount you use
  • 11. Google Web APIs Google has a long list of APIs http://code.google.com/apis/ Google Search AJAX Search API SOAP Search API (deprecated) Custom search engine with Google Co-op Google Map API Google Data API (GData) Blogger, Google Base, Calendar, Gmail, Spreadsheets, and a lot more Google Talk XMPP for communication and IM Google Translation (http://www.oreillynet.com/pub/h/4807) Many more undocumented/unlisted APIs to be discovered in Google Blog
  • 12. eBay API Buyers: Get the current list of eBay categories View information about items listed on eBay Display eBay listings on other sites Leave feedback about other users at the conclusion of a commerce transaction Sellers: Submit items for listing on eBay Get high bidder information for items you are selling Retrieve lists of items a particular user is currently selling through eBay Retrieve lists of items a particular user has bid on
  • 13. Other Services/APIs Providers Yahoo! http://developer.yahoo.com/ Search (web, news, video, audio, image…) Flickr, del.icio.us, MyWeb, Answers API Windows Live http://msdn2.microsoft.com/en-us/live/default.aspx Search (SOAP, REST) Spaces (blog), Virtual Earth, Live ID Wikipedia Downloadable database http://en.wikipedia.org/wiki/Wikipedia:Technical_FAQ#Is_it_possible_to_download_the_contents_of_Wikipedia.3F Many more at Programmableweb.com http://www.programmableweb.com/apis
  • 14. Services by Category Search Google, MSN, Yahoo E-Commerce Amazon, Ebay, Google Checkout TechBargain, DealSea, FatWallet Mapping Google, Yahoo!, Microsoft Community Blogger, MySpace, MyWeb del.icio.us, StumbleUpon Photo/ Video YouTube, Google Video, Flckr Identity/ Authentication Microsoft, Google, Yahoo News Various news feed websites including Reuters, Yahoo! and many more.
  • 15. Mashup A Novel Form of Web Reuse “ A mashup is a website or application that combines content from more than one source into an integrated experience.” – Wikipedia API X + API Y = mashup Z Business model: Advertisement
  • 16. Mashup: Weather Bonk http://www.weatherbonk.com/weather/index.jsp APIs: Google AdWords + Google Maps + hostip.info + MS Virtual Earth + NASA + NOAA Weather Service + WeatherBug + Yahoo Geocoding + Yahoo Maps + Yahoo Traffic
  • 17. Lab Session: Amazon, Google, EBay APIs Required Software: Eclipse IDE V 3.21 (http://eclipse.org) Amazon API ( http://www.amazon.com/gp/aws/landing.html ) Amazon API Playground (http://awszone.com)
  • 18. Setup NetBeans with Amazon Install Eclipse IDE for Java http://www.eclipse.org/ Register Amazon subscription ID http://www.amazon.com/gp/aws/landing.html Download Amazon Java sample Create project Install necessary libraries Execute Amazon code sample Main.java
  • 19. Retrieve Customer Information CustomerContentSearch Give name to retrieve customer ID CustomerContentLookup Give customer ID Request WishList information ResponseGroup=CustomerInfo, CustomerLists Receive WishList ID Use AWSzone.com!
  • 20. Retrieve Customer WishList and Response Manipulation ListLookup Give list ID and type to retrieve WishList content with a simple browser (REST) ResponseGroup=ListItems,ListInfo Result shows in XML format ListLookup with xml-to-text XSLT Give custom XSL to manipulate response Style=http://www.u.arizona.edu/~chunju/text.xsl&ContentType=text/plain ListLookup with xml-to-html XSLT ResponseGroup=ListItems,ListInfo,Images,SalesRank,ItemAttributes Style=http://www.u.arizona.edu/~chunju/html.xsl&ContentType=text/html
  • 21. Access Amazon REST Service with Jakarta HttpClient Download & install necessary libraries Jakarta HttpClient, Codec JUnit Write first Java program in NetBeans Use previous REST invocation strings Print Amazon response in console Resources: http://jakarta.apache.org/commons/index.html http://www.junit.org/ http://www.u.arizona.edu/~chunju/HttpClientMain.java
  • 22. Other Resources Java Web Services Developer Pack http://java.sun.com/webservices/downloads/webservicespack.html Consuming Web Services with NetBeans http://www.javapassion.com/planning/handsonbyol/netbeanswebservices/ XSLT Tutorial http://www.w3schools.com/xsl/