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);
        }
Exemplo n.º 2
0
 public ReportTest()
 {
     api             = new ReportCall(USAClientXML);
     api_json        = new ReportCall(USAClientJSON);
     B2Bapi          = new ReportCall(B2BClientXML);
     B2Bapi_json     = new ReportCall(B2BClientJSON);
     CANapi          = new ReportCall(CANClientXML);
     fadeAPI_USA_XML = new ReportCall(fakeUSAClientXML);
     fadeAPI_B2B_XML = new ReportCall(fakeB2BClientXML);
     fadeAPI_CAN_XML = new ReportCall(fakeCANClientXML);
 }
        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);
        }
Exemplo n.º 4
0
 public ResReportsList GetReportList(ReqReports reqReport)
 {
     return(ReportCall.GetReportList(reqReport, StaticConst.SPGETREPORTLIST));
 }