static void Main(string[] args) { PropellerAdsApi api = new PropellerAdsApi("mediamonkeys", "52JEL72Cs:1^6WN"); List <Campaign> campaigns = api.GetCampaignsList(); CampaignStats stat = api.GetCurrentStats(campaigns[0]); Console.WriteLine("Hello World!"); Console.ReadKey(); }
private static void Main(string[] args) { Console.WriteLine("Starting application"); Data = new ProgramData(); if (Data.HasError) { Console.ReadKey(); return; } Socket = new ClientSocket(); WorkerManager = new WorkerManager(); Browser = new MainBrowser(); API = new PropellerAdsApi(Data["username"], Data["password"]); Context = new ClientContext(); Console.WriteLine("Application has started..."); Console.ReadKey(); }