strAppId + ; + strCertId) web.Headers.Add( X-EBAY-API-DEV-NAME , strDevId) web.Headers.Add( X-EBAY-API-APP-NAME , strAppId) web.Headers.Add( X-EBAY-API-CERT-NAME , strCertId) Dim strXML As String list of items for sale that match search criteriastrXML = < ?xml version= 1.0 encoding= utf-8 ?> & _ & _ Your Token Here & _ 1 & _ GetSearchResults & _ computer & _ 1000.00 & _ 5 & _ 0 & _ add the xml string to the byte arrayDim d As Byte() = System.Text.Encoding.ASCII.GetBytes(strXML) call the ebay api and pass the byte array containing the XML stringDim res As Byte() = _ web.UploadData( https://api.sandbox.ebay.com/ws/api.dll , POST , d) TextBox1.Multiline = True display the results of the call in a text box on the formTextBox1.Text = System.Text.Encoding.ASCII.GetString(res) End Sub5.Input your Dev ID, App ID, Cert ID, and Token on the lines of code where indicated. As I tioned previously, these values are provided on the information screens you received when up your account. 6.Select File.Save All to save all changes to the project. 7.Select Debug.Start (or press F5) to run the project. Click the button that says HTTP-POSTExample to run the HTTP-POST Example. 8.You should see a window similar to Figure 5-10 that displays the XMLresults returned from API. They begin with the first item that matched the search criteria. You must use an XMLparser to parse the values you use in your application in order to work with meaningful ways. eBay has recently announced a SOAPenhancement for many API operations you the option of calling the API without having to parse XMLin your underlying programs. how this works.
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 yet.
Sorry, the comment form is closed at this time.