amazon e-commerce services part 1 build your own amazon.com by david silverlight...
TRANSCRIPT
Amazon E-Commerce ServicesAmazon E-Commerce ServicesPart 1Part 1
Build your own Amazon.comBuild your own Amazon.com
By David SilverlightBy David Silverlight
[email protected]@XLMPitstop.com
About MeAbout Me
.NET Consultant.NET Consultant
Head Geek of XMLPitstop.comHead Geek of XMLPitstop.com
Recently started DotNetPitstop.comRecently started DotNetPitstop.com
One of the founders of NonProfitWays.comOne of the founders of NonProfitWays.com
(more to come…..)(more to come…..)
What will be coveredWhat will be covered
What Amazon E-Commerce services offer What Amazon E-Commerce services offer us.us.
Getting startedGetting started
Operation TypesOperation Types
Response GroupsResponse Groups
Single and Multiple search criteria.Single and Multiple search criteria.
Integrating Amazon ECS into our own .NET Integrating Amazon ECS into our own .NET applications.applications.
What Amazon Web Services offersWhat Amazon Web Services offers
Full access to Amazon dataFull access to Amazon data
You can add content to your website You can add content to your website
You can hear that ch-ching sound.You can hear that ch-ching sound.
Confirmation of the benefits of web Confirmation of the benefits of web services.services.
Getting Started – 6 Easy StepsGetting Started – 6 Easy Steps
Step 1 – Join Amazon Web Services ProgramStep 1 – Join Amazon Web Services Program Navigate to the Web Service are of the “Make Money” section Navigate to the Web Service are of the “Make Money” section (approx time 10 minutes)(approx time 10 minutes)
Getting StartedGetting StartedStep 2 – Download their demo apps and Step 2 – Download their demo apps and APIAPI
Approx Time (5 minutes)Approx Time (5 minutes)
Step 3 – Create your own .NET apps from their demos and API.Step 3 – Create your own .NET apps from their demos and API. Approx Time (2 hours)Approx Time (2 hours)
Step 4 – Drink Pint of whiskey to recover from frustration of having no good Step 4 – Drink Pint of whiskey to recover from frustration of having no good starting materials for your .NET applications.starting materials for your .NET applications.
Approx Time (varies between 1 hour and 2 days)Approx Time (varies between 1 hour and 2 days)
Step 5 – Google some of the following termsStep 5 – Google some of the following terms ““Building Amazon Web Services”Building Amazon Web Services” ““ECS and Amazon”ECS and Amazon” ““ECS and ASP.NET”ECS and ASP.NET” ““Alchoholics Anonymous” (see step 4)Alchoholics Anonymous” (see step 4)
Approx Time (3 hours)Approx Time (3 hours)
Step 6 – Build your app from asp.net samples finally locatedStep 6 – Build your app from asp.net samples finally located Approx Time 1 hour Approx Time 1 hour
Adding a Web ReferenceAdding a Web Reference
Proxy HeadachesProxy Headaches
Types of OperationsTypes of Operations
Product SearchesProduct Searches - - Allow you to look up Amazon Allow you to look up Amazon productsproducts
CustomersCustomers - L- Look up publicly available customer ook up publicly available customer content.content.
Shopping CartShopping Cart – Create a shopping cart of amazon – Create a shopping cart of amazon products and hand it off to amazon.products and hand it off to amazon.
Product Data OperationsProduct Data OperationsAllow you to look up Amazon products, either by searching for groups Allow you to look up Amazon products, either by searching for groups of products or by looking up specific items.of products or by looking up specific items.
ItemSearchItemSearch Search the product database using a one of a variety of Search the product database using a one of a variety of possible criteria.possible criteria.
ItemLookupItemLookup Look up specific product(s) in the Amazon database. Look up specific product(s) in the Amazon database.
SimilarityLookupSimilarityLookup Look up products that are similar to specific other Look up products that are similar to specific other products. products.
SellerListingSearchSellerListingSearch Search for seller product listings (zShops and Search for seller product listings (zShops and Marketplace). Marketplace).
SellerListingLookupSellerListingLookup Look up a specific zShops or Marketplace product Look up a specific zShops or Marketplace product listing from a particular seller. listing from a particular seller.
Customer Content OperationsCustomer Content Operations
Allow you to look up publicly available customer Allow you to look up publicly available customer content, such as reviews, wish lists and Listmania content, such as reviews, wish lists and Listmania listslists
CustomerContentSearchCustomerContentSearch Search for customers. Search for customers.
CustomerContentLookupCustomerContentLookup Look up specific customer(s) Look up specific customer(s) information (location/name/reviews).information (location/name/reviews).
ListLookupListLookup Look up specific list(s) created by customers. Look up specific list(s) created by customers.
ListSearchListSearch Search for customer-created lists. Search for customer-created lists.
Seller InformationSeller Information
Look up feedback on specific sellers Look up feedback on specific sellers and get seller product listingsand get seller product listings
SellerLookupSellerLookup Look up information about a specific Look up information about a specific seller. seller.
Shopping Cart OperationsShopping Cart Operations
Create a shopping cart of items and hand it off to Amazon so Create a shopping cart of items and hand it off to Amazon so the customer can purchase the selected items.the customer can purchase the selected items.
CartCreateCartCreate Create a shopping cart and add an item(s). Create a shopping cart and add an item(s).
CartAddCartAdd Add products to the shopping cart Add products to the shopping cart
CartModifyCartModify Change quantities or status of entries in the shopping Change quantities or status of entries in the shopping cart.cart.
CartClearCartClear Clear all entries in a shopping cart Clear all entries in a shopping cart
CartGetCartGet Get the contents of a shopping cart with updated price and Get the contents of a shopping cart with updated price and availability information.availability information.
MiscellaneousMiscellaneous
BrowseNodeLookupBrowseNodeLookup Returns information about Returns information about a browse node, including child nodes. a browse node, including child nodes.
HelpHelp Returns information about how to use an Returns information about how to use an ECS operation or about what to expect from ECS operation or about what to expect from ECS response groups. ECS response groups.
TransactionLookupTransactionLookup Look up the amount of a Look up the amount of a specific transaction. specific transaction.
Response GroupsResponse GroupsStandard response groups:Standard response groups:
RequestRequest - Echoes the operation parameters. - Echoes the operation parameters.ItemIdsItemIds - Returns only ASINs. - Returns only ASINs.
Amalgamated response groups:Amalgamated response groups:SmallSmall - Global, item-level data (no pricing or availability), including the ASIN, product title, creator - Global, item-level data (no pricing or availability), including the ASIN, product title, creator (author, artist, composer, directory, manufacturer, etc.), product group, URL, and manufacturer.(author, artist, composer, directory, manufacturer, etc.), product group, URL, and manufacturer.MediumMedium - Includes - Includes SmallSmall, , RequestRequest, , ItemAttributesItemAttributes, , OfferSummaryOfferSummary, , SalesRankSalesRank, , EditorialReviewEditorialReview, , and and ImagesImages response groups. response groups.LargeLarge - Includes - Includes MediumMedium, , TracksTracks, , BrowseNodesBrowseNodes, , ReviewsReviews, , ListmaniaListsListmaniaLists, , SimilaritiesSimilarities, , OffersOffers, , and and AccessoriesAccessories response groups. response groups.
Offer information (actual prices/availability):Offer information (actual prices/availability):OfferSummaryOfferSummary OffersOffers - Includes - Includes OfferSummaryOfferSummary plus all offer listings specified by the plus all offer listings specified by the ConditionCondition parameter parameterOfferFullOfferFull - Includes - Includes OffersOffers plus merchant name or seller nickname. plus merchant name or seller nickname.
Plus various product attributes:Plus various product attributes:ItemAttributesItemAttributes TracksTracks AccessoriesAccessories EditorialReviewEditorialReview SalesRankSalesRank BrowseNodesBrowseNodes ImagesImages SimilaritiesSimilarities ReviewsReviews ListmaniaListsListmaniaLists
Single Criteria SearchesSingle Criteria Searches
Search By PublisherSearch By Publisher
Search By ISBNSearch By ISBN
Publisher SearchPublisher Search Function Function SearchByPublisherSearchByPublisher(ByVal (ByVal PublisherPublisher As String, ByVal As String, ByVal KeyWordKeyWord As String, ByVal As String, ByVal SortOrderSortOrder
As String, ByVal As String, ByVal CurrPageCurrPage As String) As wsAmazonECS.Items As String) As wsAmazonECS.Items
Dim Dim SearchRequestSearchRequest As New wsAmazonECS.ItemSearchRequest As New wsAmazonECS.ItemSearchRequest Dim Dim itemSearchitemSearch As New wsAmazonECS.ItemSearch As New wsAmazonECS.ItemSearch
SearchRequest.SearchIndexSearchRequest.SearchIndex = "Books" = "Books" SearchRequest.PublisherSearchRequest.Publisher = Publisher = Publisher SearchRequest.KeywordsSearchRequest.Keywords = KeyWord = KeyWord SearchRequest.ResponseGroupSearchRequest.ResponseGroup = New String() {"Request", “Small"} = New String() {"Request", “Small"}
SearchRequest.ItemPageSearchRequest.ItemPage = CurrPage = CurrPage SearchRequest.SortSearchRequest.Sort = SortOrder = SortOrder
itemSearch.AssociateTagitemSearch.AssociateTag = ConfigurationSettings.AppSettings("AmazonAffiliateTag") = ConfigurationSettings.AppSettings("AmazonAffiliateTag") itemSearch.SubscriptionIditemSearch.SubscriptionId = ConfigurationSettings.AppSettings("AmazonDeveloperToken") = ConfigurationSettings.AppSettings("AmazonDeveloperToken") itemSearch.RequestitemSearch.Request = New wsAmazonECS.ItemSearchRequest() {SearchRequest} = New wsAmazonECS.ItemSearchRequest() {SearchRequest}
Return aws.ItemSearch(itemSearch).Items(0)Return aws.ItemSearch(itemSearch).Items(0)
End FunctionEnd Function
ISBN SearchISBN Search
Function SearchByISBN(ByVal Function SearchByISBN(ByVal ISBNNumberISBNNumber As String) As wsAmazonECS.Items As String) As wsAmazonECS.Items
Dim Dim LookupRequestLookupRequest As New wsAmazonECS.ItemLookupRequest As New wsAmazonECS.ItemLookupRequest Dim Dim itemLookupitemLookup As New wsAmazonECS.ItemLookup As New wsAmazonECS.ItemLookup
LookupRequest.ItemIdLookupRequest.ItemId = New String() {ISBNNumber} = New String() {ISBNNumber} LookupRequest.ResponseGroupLookupRequest.ResponseGroup = New String() {"Request", "Large"} = New String() {"Request", "Large"}
'Since we are Searching a specific item, we use the itemLookup object'Since we are Searching a specific item, we use the itemLookup object itemLookup.AssociateTagitemLookup.AssociateTag = ConfigurationSettings.AppSettings("AmazonAffiliateTag") = ConfigurationSettings.AppSettings("AmazonAffiliateTag") itemLookup.SubscriptionIditemLookup.SubscriptionId = ConfigurationSettings.AppSettings("AmazonDeveloperToken") = ConfigurationSettings.AppSettings("AmazonDeveloperToken") itemLookup.RequestitemLookup.Request = New wsAmazonECS.ItemLookupRequest() {LookupRequest} = New wsAmazonECS.ItemLookupRequest() {LookupRequest}
Return aws.ItemLookup(itemLookup).Items(0)Return aws.ItemLookup(itemLookup).Items(0)
End FunctionEnd Function
Multiple Criteria - Power SearchMultiple Criteria - Power Search
Available only for BooksAvailable only for BooksCan offer the same functionality as Single Category Can offer the same functionality as Single Category Searches but with the additional power of searching Searches but with the additional power of searching multiple criteria.multiple criteria.Examples:Examples:
author: ambrose author: ambrose author: ambrose and binding: (abridged or large print) and author: ambrose and binding: (abridged or large print) and
pubdate: after 11-1996 pubdate: after 11-1996 subject: history and (spain or mexico) and not military and subject: history and (spain or mexico) and not military and
language: spanish language: spanish (subject: marketing and author: kotler) or (publisher: harper and (subject: marketing and author: kotler) or (publisher: harper and
subject: "high technology") subject: "high technology") keywords: "high tech*" and not fiction and pubdate: during 1999 keywords: "high tech*" and not fiction and pubdate: during 1999 isbn: 0446394319 or 0306806819 or 1567993850 isbn: 0446394319 or 0306806819 or 1567993850
Power SearchPower Search
FunctionFunction PowerSearch PowerSearch(ByVal (ByVal PowerSearchStringPowerSearchString As String, ByVal As String, ByVal SortOrderSortOrder As String, ByVal As String, ByVal CurrPageCurrPage As String) As As String) As wsAmazonECS.ItemswsAmazonECS.Items
'Create an instance of the Search Request object to store the search values for this type of search.'Create an instance of the Search Request object to store the search values for this type of search. Dim Dim SearchRequestSearchRequest As New wsAmazonECS.ItemSearchRequest As New wsAmazonECS.ItemSearchRequest
Dim Dim itemSearchitemSearch As New wsAmazonECS.ItemSearch As New wsAmazonECS.ItemSearch
'Set the properties of this search to store the Search Type, Search Parameters, Sord Order and Types of data 'Set the properties of this search to store the Search Type, Search Parameters, Sord Order and Types of data requestedrequested
SearchRequest.SearchIndexSearchRequest.SearchIndex = "Books" = "Books" SearchRequest.PowerSearchRequest.Power = PowerSearchString = PowerSearchString SearchRequest.ResponseGroupSearchRequest.ResponseGroup = New String() {"Request", "Large"} = New String() {"Request", "Large"} SearchRequest.SortSearchRequest.Sort = SortOrder = SortOrder SearchRequest.ItemPageSearchRequest.ItemPage = CurrPage = CurrPage
'Set the authentication values and Search Request information for the search'Set the authentication values and Search Request information for the search itemSearch.AssociateTagitemSearch.AssociateTag = ConfigurationSettings.AppSettings("AmazonAffiliateTag") = ConfigurationSettings.AppSettings("AmazonAffiliateTag") itemSearch.SubscriptionIditemSearch.SubscriptionId = ConfigurationSettings.AppSettings("AmazonDeveloperToken") = ConfigurationSettings.AppSettings("AmazonDeveloperToken") itemSearch.RequestitemSearch.Request = New wsAmazonECS.ItemSearchRequest() {SearchRequest} = New wsAmazonECS.ItemSearchRequest() {SearchRequest}
'Return the Search Results as an items collection'Return the Search Results as an items collection Return aws.ItemSearch(itemSearch).Items(0)Return aws.ItemSearch(itemSearch).Items(0)
End FunctionEnd Function
Demo TimeDemo Time
Searching Searching Amazon.comAmazon.com
Building a Shopping Cart Application (Part 2)Building a Shopping Cart Application (Part 2)
Customizing the Use Experience (Part 2)Customizing the Use Experience (Part 2)
Affiliate Programs (Part 2)Affiliate Programs (Part 2)
What’s New..What’s New..
AWS Management AWS Management ServicesServices(Beta)(Beta) Allows you to track and maintain your web Allows you to track and maintain your web
services in the Amazon Web Services family.services in the Amazon Web Services family.http://www.amazon.com/gp/aws/sdk/102-7297225-8695301?s=AWSManagementService&v=1-0http://www.amazon.com/gp/aws/sdk/102-7297225-8695301?s=AWSManagementService&v=1-0
Amazon Simple Queue Service Amazon Simple Queue Service (Beta)(Beta) High Speed Queue Service for buffering High Speed Queue Service for buffering
messagesmessageshttp://www.amazon.com/gp/browse.html/ref=sc_fe_l_1/102-7297225-8695301?%5Fenchttp://www.amazon.com/gp/browse.html/ref=sc_fe_l_1/102-7297225-8695301?%5Fencoding=UTF8&node=13584001&no=13584171&me=A36L942TSJ2AJAoding=UTF8&node=13584001&no=13584171&me=A36L942TSJ2AJA
ResourcesResources AWSZone.comAWSZone.com – Tons of great examples. Elena Dykhno (a.k.a. – Tons of great examples. Elena Dykhno (a.k.a.
Elena-d) is a true genius and runs the site. She is also quite Elena-d) is a true genius and runs the site. She is also quite active on Amazon’s discussion forumactive on Amazon’s discussion forum
Implementing Amazon Web Services in VB.NETImplementing Amazon Web Services in VB.NET – Great Article – Great Article
Hunting the Web Services at AmazonHunting the Web Services at Amazon – An article on PHP – An article on PHP access, but with some nice explanationsaccess, but with some nice explanations
Tying into the Tying into the Amazon.comAmazon.com Web Service Web Service Dan Wahlin’s site Dan Wahlin’s site xmlforasp.netxmlforasp.net
Amazon Explorer - An adventure with ASP.NET & the Amazon Amazon Explorer - An adventure with ASP.NET & the Amazon Web ServiceWeb Service – Highly rated article on code project – Highly rated article on code project
JobsJobs
BooksBooks
ISBN: 0782143075 ISBN: 0596005423
Thank YouThank You
Contact Info:Contact Info: David SilverlightDavid Silverlight [email protected]@XMLPitstop.com
Visit some of my sites….Visit some of my sites…. XMLPitstop.comXMLPitstop.com DOTNetPitstop.comDOTNetPitstop.com NonProfitWays.comNonProfitWays.com