/**
*
* The following steps need to be done to add/modify basic field(s) in an existing listing.
*
* 1. Create an ApiContext Object
* 2. Set the auth token and target api url (Webservice endpoint)
* 3. Create a ReviseFixedPriceItemCall object.
* 4. Create an item object and set the SKU for the item whose field(s) is/are to added/modified.
* 5. Modify/add the fields in the item object and set it to the ReviseFixedPriceItemCall object.
* 6. Execute the API call ReviseFixedPriceItemCall#reviseFixedPriceItem() to revise the listing.
*
*/
public class ReviseFixexPriceItemBasic {
public static void reviseFixedPriceItemBasic(){
// Create a new APIContext Object
ApiContext apiContext = new ApiContext();
ApiCredential cred = apiContext.getApiCredential();
ApiLogging apiLogging = new ApiLogging();
apiContext.setApiLogging(apiLogging);
// set the server url and credentials for Sandbox
apiContext.setApiServerUrl("https://api.sandbox.ebay.com/wsapi");
cred.seteBayToken("YourToken");
// Set site to US
apiContext.setSite(SiteCodeType.US);
ReviseFixedPriceItemCall rfp = new ReviseFixedPriceItemCall(apiContext);
ItemType item = new ItemType();
item.setSKU("CODE_SAMPLE_REVISE_FPITEM_SKU1");
item.setTitle("Testing-DO NOT BID - Changed Title");