/// <summary> /// Send message /// </summary> public void SendMessage() { var sendMessageOptions = new NewMessagingSenderId { From = "+18665552368", // alphanumeric sender id To = "+18665552367", Text = "Hello, World!" }; Console.WriteLine(JsonConvert.SerializeObject(sendMessageOptions)); var requestOptions = new RequestOptions { ApiKey = YOURAPIKEY }; Console.WriteLine(JsonConvert.SerializeObject(requestOptions)); var messagingSender = this.service.Create(sendMessageOptions, requestOptions); Console.WriteLine(JsonConvert.SerializeObject(messagingSender)); }
/// <inheritdoc/> public async Task <MessagingSenderId> CreateAsync(NewMessagingSenderId createOptions, RequestOptions requestOptions = null, CancellationToken cancellationToken = default(CancellationToken)) { return(await this.CreateEntityAsync(createOptions, requestOptions, cancellationToken)); }
/// <inheritdoc/> public MessagingSenderId Create(NewMessagingSenderId createOptions, RequestOptions requestOptions = null) { return(this.CreateEntity(createOptions, requestOptions)); }