您好,欢迎访问三七文档
当前位置:首页 > IT计算机/网络 > 电子商务 > eBay API Jumpstart
eBayAPIJumpstartSikPlkSarikaParalkarDeveloperTechnicalSupportEngineerShare,reuse,andremixthistalkThittiiilbldCtiThispresentationisavailableunderCreativeCommonsAttribution-Noncommercial-ShareAlike3.0Youcansharethisinformationwithothers.Don’tforgettotagiteBayDevCon2010.©2010,eBayInc.Somerightsreserved.eBayandtheeBaylogoareamongtheregisteredtrademarksofeBayInc.OthertrademarksandbrandsarethepropertyoftheirrespectiveownersOthertrademarksandbrandsarethepropertyoftheirrespectiveowners.Agenda•IntroductiontoeBayAPIs•GettingStarted•FindingAPI•TradingAPITradingAPI•NextStepsQ&A•Q&AeBayAPIseBayAPIsPossibilitiesPowerofeBayAPIs•Findandpurchaseitems•Listitemsandmanageinventory•Performpostsalesprocessing•Managemember-membercommunicationManagemembermembercommunication•ManageuseraccountAPIsgiveyoumostofthefunctionalityavailableonthesiteAPIOfferings•FindingFinding•Shopping•Merchandising•PlatformNotificationsClientAlerts•ClientAlerts•ResearcheBayAPIs•Trading•OpeneBayApps•LargeMerchantServices•BestMatch•ProductServices•FeedbackGettingStartedGettingStartedStep1:JointheProgram://developer.ebay.com/join/Default.aspxStep2:GenerateYourKeys•Key=DevID-AppID-CertID•Environments•Sandbox•Production•Onekeysetperenvironment•DonotexposekeysDonotexposekeys•AppIDidentifiesapplicationandisrequiredwhenmakingAPIcallsrequiredwhenmakingAPIcallsFindingAPIFindingAPIFindingAPI•EnablesdeveloperstosearchforeBayitems(bykeywords/category/product)•SuitableforbuildingsearchandbrowseapplicationsFormats:XML,SOAP,NameValue,JSONPtlHTTPGETdPOSTProtocols:HTTPGETandPOSTFindingAPICalls•findItemsByKeywords•findItemsByCategory•findItemsAdvanced•findItemsByProductfindItemsByProduct•findItemsIneBayStoresgetHistograms•getHistograms•getSearchKeywordsRecommendationStartFindingSimpleSearchQuery•Findingstartswithkeywords?xmlversion=1.0encoding=utf-8?findItemsAdvancedRequestfindItemsAdvancedRequestxmlns=•CallStructure•ServiceEndpointServiceEndpoint•HTTPHeaders/URLparameters•Inputfields(Callspecificandstandard)Inputfields(Callspecificandstandard)ManagingSearchResults•FiltersearchresultsusingitemFilter(Condition,ListingType,etc.)•Sortresults•sortOrder(PricePlusShippingLowest…)•Usepagination•Pagination(entriesPerPage,pageNumber)g(gpg)ManagingSearchResults•RefineresultswithaspectFilter•Aspects—standarditemcharacteristicsforitit(fMilitemsinacategory(fore.g.Megapixel,OpticalZoom)Getaspectinformationbypassing•GetaspectinformationbypassingoutputSelector(AspectHistogram)Exercise:FindSneakers•Find‘New’SneakerslistedundertheMen’sShoes(CategoryID-63850).Refineyourhltbsearchresultsby•Price–between$50and$120•Style–Athletic•Size–10MakeFindingWorkforYou•Searchagainstthesiteyouwantto•Narrowresultswithitemfiltersandaspectfilters•UsePaginationg•SortresultsResourcesFindingAPIDocumentation://dev-forums.ebay.com/forum.jspa?forumID=500000001Pop-Quiz•X-EBAY-SOA-GLOBAL-IDHTTPheaderspecifiesthe________touseforsearches.eBaysite•Todividesearchresultsintosubsetsuse__________.Pagination•Torefinesearchresultsuse__________and____________.itemFiltersaspectFiltersTradingAPITradingAPITradingAPI•Forsellingandpost-salesmanagement•ListingandmanaginginventoryoneBay•Orderfulfillment•ManagingbuyercommunicationanddisputesFormats:XML,SOAPProtocols:HTTPSPOSTProtocols:HTTPSPOSTTradingAPIApplicationAppIDAppIDeBayUserneBayUser1eBayUser2….•ApplicationanduserareseparateentitiesTradingAPIapplicationismakingcallson•TradingAPIapplicationismakingcallsonbehalfofeBayuser(s)UserToken•AuthorizationforyourapplicationtoaccesseBaydataonbehalfoftheeBayUser•Uniqueforanapplication(AppID)andeBayuser•String-atoz,AtoZ,0to9,*/+•Lifetime=18monthsExercise:SandboxUserCreation•CreateaSandboxuser(testuser)•CreateaSandboxuser(testuser)•ForProduction–RegisteroneBaycom•ForProduction–RegisteroneBay.com:GetUserTokenObtitkfSdb•ObtainausertokenforyourSandboxuserusingtheUserTokenTool://developer.ebay.com/DevZone/account/tokensUserToken:MultipleUsers•ConfigureApplicationSettings•ThenforeveryuserfollowprocessasbelowGetSessionID()RedirecttoeBaySign-inhtt//iib//BISAPIdll?SiI&=RuName&SessID=SessionIDFetchToken(SessionID)HelloWorld!AKAGeteBayOfficialTime?li10ditf8??xmlversion=1.0encoding=utf-8?GeteBayOfficialTimeRequestxmlns=urn:ebay:apis:eBLBaseComponentsRequesterCredentialseBayAuthTokenSandboxUser'sToken/eBayAuthToken/RequesterCredentials/RequesterCredentials/GeteBayOfficialTimeRequest•Observerequestheadersandresponse•WhatchangesintheresponseifyouchangeSiteIDintherequestto3?ControllingDatainResponse•ObservetheresponsewithandwithouttheDetailLevel?xml
本文标题:eBay API Jumpstart
链接地址:https://www.777doc.com/doc-5536435 .html