Web Page Design and Hosting

April 30, 2007

#2 Retrieve a List of CategoriesIn this example, you

Filed under: professional development with web apis — webmaster @ 7:14 pm

#2 Retrieve a List of CategoriesIn this example, you use the GetCategoriesmethod to retrieve all of the categories for a particulareBay site. SOAP Example1.Add the following Example2procedure to the code section of the existing project. Replace where specified with your own eBay credentials. Sub Example2() On Error GoTo handleerrorDim strToken As StringDim strDevId As StringDim strAppId As StringDim strCertId As String specify credentials required to access APIstrToken = Your Token Here strDevId = Your Dev Id Here strAppId = Your App Id Here strCertId = Your Cert Id Here Dim SOAPService As New ebay.eBayAPIInterfaceServiceSOAPService.Url = _ https://api.sandbox.ebay.com/wsapi?callname=GetCategories&siteid=0&appid= & strAppId & version=383 SOAPService.RequesterCredentials = New ebay.CustomSecurityHeaderTypeSOAPService.RequesterCredentials.eBayAuthToken = strTokenSOAPService.RequesterCredentials.Credentials = New ebay.UserIdPasswordTypeSOAPService.RequesterCredentials.Credentials.AppId = strAppIdSOAPService.RequesterCredentials.Credentials.DevId = strDevIdSOAPService.RequesterCredentials.Credentials.AuthCert = strCertIdDim Request As New ebay.GetCategoriesRequestTypeDim Response As New ebay.GetCategoriesResponseType specify the API versionRequest.Version = 383 get the categories for the U.S. Request.CategorySiteID = 0 call the GetCategories methodResponse = SOAPService.GetCategories(Request) Dim intCount As Integer display the list of eBay categoriesIf IsNothing(Response.Errors) ThenDim items As ebay.CategoryType137Using

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Mac Web Hosting services


No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Java Web Hosting