/// <summary> /// Create messaging profile /// </summary> public void Create() { var createOptions = new NewMessagingProfile { Name = "Summer Campaign" }; Console.WriteLine(JsonConvert.SerializeObject(createOptions)); var requestOptions = new RequestOptions { ApiKey = YOURAPIKEY }; Console.WriteLine(JsonConvert.SerializeObject(requestOptions)); var messagingProfile = this.service.Create(createOptions, requestOptions); Console.WriteLine(JsonConvert.SerializeObject(messagingProfile)); }
/// <inheritdoc/> public Task <MessagingProfile> CreateAsync(NewMessagingProfile createOptions, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(this.CreateEntityAsync(createOptions, requestOptions, cancellationToken)); }
/// <inheritdoc/> public MessagingProfile Create(NewMessagingProfile createOptions, RequestOptions requestOptions = null) { return(this.CreateEntity(createOptions, requestOptions)); }