Home
Find the answer to your question
Is there sample code on using GetItemTransactions with the .NET SDK?
GetItemTransactions sample implemented in vb.net using Visual Studio .NET (original version, not 2003 or 2005) using eBay SDK v471.0 for .NET
Detailed Description
The attached command line sample project contains an implementation of GetItemTransactions.
The code will output some of the data for each transaction.
The code uses a page size of 200 (the maximum allowed) and will make a GetItemTransactions call for each page.
Requirements:
Any version of Visual Studio .NET
The attached project uses the original version of Visual Studio .NET
If you have a newer version of Visual Studio .NET, you should let it automatically convert the project when prompted to do so. This will result in a project that is fully functional for the Visual Studio .NET verison that you are using.
1. Before you build this sample project, please make sure to check that the project's reference to eBay.Service is valid.
The path to this reference is D:\Program Files\eBay\eBay SDK v471.0 for .NET\eBay.Service.dll in this sample.
If needed, remove the existing reference, and add the reference again pointing to whereever this file is on your computer.
2. Before you run the sample, you will need to fill in your information in place of the "xxx" in the following lines of source code:
' set the dev,app,cert information
oContext.ApiCredential.ApiAccount.Developer = "xxx";
oContext.ApiCredential.ApiAccount.Application = "xxx";
oContext.ApiCredential.ApiAccount.Certificate = "xxx";
' set the AuthToken
oContext.ApiCredential.eBayToken = "xxx";
Replace the ItemID in the code with your ItemID:
' set the ItemID here
GetItemTransactions.ItemID = 170000449164
Please note that the default API URL is set to Production:
oContext.SoapApiServerUrl = "https://api.ebay.com/wsapi";
Version Info
The attached project is based on the following versions:
.NET SDK Version | 471 Full Release |
Visual Studio | Original .NET (not 2003 or 2005) |