public OtherTest() { api = new OtherCall(USAClientXML); fakeapi = new OtherCall(fakeUSAClientXML); api_json = new OtherCall(USAClientJSON); fakeapi_json = new OtherCall(fakeUSAClientJSON); }
public Demo() { //Construct an APIConfig with SellerID, APIKey(Authorization) and SecretKey. //APIConfig config = new APIConfig("****", "********************************", "********-****-****-****-************"); // or load the config file to get it. APIConfig USA_Config_XML = APIConfig.FromJsonFile("configUSA_JSON.json"); APIConfig CAN_Config_XML = APIConfig.FromJsonFile("configCAN_JSON.json"); //Create a APIClient with the config APIClient fakeUSAClientXML = new APIClient(USA_Config_XML) { SimulationEnabled = true }; APIClient fakeCANClientXML = new APIClient(CAN_Config_XML) { SimulationEnabled = true }; //Create the Api Call object with he client. ordercall = new OrderCall(fakeUSAClientXML); itemCall = new ItemCall(fakeUSAClientXML); CANordercall = new OrderCall(fakeCANClientXML); CANitemCall = new ItemCall(fakeCANClientXML); sellerCall = new SellerCall(fakeUSAClientXML); datafeedCall = new DatafeedCall(fakeUSAClientXML); rmaCall = new RMACall(fakeUSAClientXML); shippingCall = new ShippingCall(fakeUSAClientXML); reportCall = new ReportCall(fakeUSAClientXML); otherCall = new OtherCall(fakeUSAClientXML); }
public Demo() { //Construct an APIConfig with SellerID, APIKey(Authorization) and SecretKey. APIConfig config = new APIConfig("****", "********************************", "********-****-****-****-************"); // or load the config file to get it. //APIConfig config = APIConfig.FromJsonFile("setting.json"); //Create a APIClient with the config APIClient client = new APIClient(config); //Create the Api Call object with he client. ordercall = new OrderCall(client); itemCall = new ItemCall(client); sellerCall = new SellerCall(client); datafeedCall = new DatafeedCall(client); rmaCall = new RMACall(client); shippingCall = new ShippingCall(client); reportCall = new ReportCall(client); otherCall = new OtherCall(client); }