Exemple #1
0
 public Campaigns(CampaignsInput input)
 {
     if (input == null)
     {
         throw new Exception("Input Parameters are empty.");
     }
     Input  = input;
     Output = new CampaignsOutput(input);// Need to set some of the default values.
 }
Exemple #2
0
        public static void GetAllCampaigns()
        {
            CampaignsInput objEmmaInput = new CampaignsInput();

            objEmmaInput.ApiPrivateKey = "f9c4d4c0b118051c18d3";
            objEmmaInput.ApiPublicKey  = "4f932c1659a49045ae39";
            objEmmaInput.ApiAccountID  = "1717169";
            Campaigns       cmd    = new Campaigns(objEmmaInput);
            CampaignsOutput objOut = cmd.Execute();

            PrintObject <CampaignsResult>(objOut.Result);
        }