Home
Find the answer to your question
.NET SDK sample to report VERO items
Detailed Description
This C# example demonstrates how make a call to VEROReportItems to report items
that are infringing your copyright, trademark, or other intellectual property
rights.
using System; using eBay.Service.Call; using eBay.Service.Core.Sdk; using eBay.Service.Util; using eBay.Service.Core.Soap; namespace SDKSamples
public class SDKSamples
}
{
public void VeroReportItem(string
itemID, string
rightsOwner)
{ VeROReportItemsCall apicall = new VeROReportItemsCall(GetContext()); //Set the UserID of the Rights Owner apicall.RightsOwnerID = rightsOwner; //Create a collection of items to report apicall.ReportItemList = new VeROReportItemTypeCollection();
//Create the item //Add more items if
required } public ApiContext
GetContext()
// Credentials for the call
}
context.ApiCredential.ApiAccount.Developer = "devID"; context.ApiCredential.ApiAccount.Application = "appID"; context.ApiCredential.ApiAccount.Certificate = "certID"; context.ApiCredential.eBayToken = "token"; // Set the URL // Set logging // Set the version return context; } |
Here is a corresponding XML request:
<?xml version="1.0" encoding="utf-8"?>
<VeROReportItemsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<Version>505</Version>
<RightsOwnerID>user1</RightsOwnerID>
<ReportItems>
<ReportItem>
<ItemID>110018000757</ItemID>
<VeROReasonCodeID>9034</VeROReasonCodeID>
<MessageToSeller>Your listing is in violation of copyright, trademark, or other intellectual property rights.</MessageToSeller>
</ReportItem>
</ReportItems>
<CopyEmailToRightsOwner>true</CopyEmailToRightsOwner>
<RequesterCredentials>
<eBayAuthToken>*****</eBayAuthToken>
</RequesterCredentials>
</VeROReportItemsRequest>
Version Info
The code example above was based on the versions specified below:
API Schema Version | 505 |
.NET SDK Version | .NET SDK v495.0 full release |