Skip to main content
Published: November 22 2006, 3:23:00 PMUpdated: November 28 2020, 3:03:36 PM

Sample code for LeaveFeedback in VB6 using .NET SDK


Summary


If you use the .NET SDK with programming languages such as VB6, it is recommended that you use the no argument Execute method to invoke the call. 
 



Detailed Description

Here is a sample code for making a call to LeaveFeedback.

'Create the context object
Public context As apiContext
Set context = New apiContext
'set the properties of the context object
context.ApiCredential.ApiAccount.Developer = "DevID"
context.ApiCredential.ApiAccount.Application = "AppId"
context.ApiCredential.ApiAccount.Certificate = "Cert"
context.SoapApiServerUrl = ""
context.ApiCredential.eBayToken = "Token"
'set the site
context.Site = eBayService_SiteCodeType_US
'create the call object
Set ApiCall = New LeaveFeedbackCall
ApiCall.apiContext = context
ApiCall.itemID = "12345678"
ApiCall.CommentType = CommentTypeCodeType_Positive
ApiCall.CommentText = "great buyer"
ApiCall.TransactionID = "0"
ApiCall.TargetUser = "user2"
'Execute the call
ApiCall.Execute

To find out all the properties that need to be set for the call, you will need to refer to the documentation for that call.  For this example, if you take a look at the Input / Output reference for LeaveFeedback, you can see all the properties and their datatype.

Version Info

The code example above was based on the versions specified below:

API Schema Version 485
.NET SDK Version .NET SDK v479.0 full release



Additional Resources

How well did this answer your question?
Answers others found helpful