예제 #1
0
 public static async Task WillCreateEvent()
 {
     var acApiUrl        = "https://connectstage.esynctraining.com/";
     var con             = new ConnectionDetails(new Uri(acApiUrl));
     var acProvider      = new AdobeConnectProvider(con);
     var login           = "******";
     var password        = "******";
     var eventName       = $"__newMyTest{DateTime.Now:yyyy-M-d hh-mm-ss}";
     var eventStartDate  = DateTime.Now;
     var eventEndDate    = eventStartDate.AddDays(1);
     var saveEventFields = new SaveEventFields(new UserCredentials(login, password), eventName, eventStartDate, eventEndDate);
     var result          = await acProvider.CreateEvent(saveEventFields);
 }