All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| create_multi_channel_message | POST /users/{accountId}/messages/multiChannel | Create Multi-Channel Message |
create_multi_channel_message(account_id, multi_channel_message_request)
Create Multi-Channel Message
Endpoint for sending Multi-Channel messages.
require 'time'
require 'bandwidth-sdk'
# setup authorization
Bandwidth.configure do |config|
# Configure HTTP basic authorization: Basic
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
# Configure OAuth2 access token for authorization: OAuth2
config.access_token = 'YOUR ACCESS TOKEN'
end
api_instance = Bandwidth::MultiChannelApi.new
account_id = '9900000' # String | Your Bandwidth Account ID.
multi_channel_message_request = Bandwidth::MultiChannelMessageRequest.new({to: '+15552223333', channel_list: [Bandwidth::MultiChannelChannelListRequestObject.new({from: 'BandwidthRBM', application_id: '93de2206-9669-4e07-948d-329f4b722ee2', channel: Bandwidth::MultiChannelMessageChannelEnum::RBM, content: Bandwidth::MmsMessageContent.new})]}) # MultiChannelMessageRequest |
begin
# Create Multi-Channel Message
result = api_instance.create_multi_channel_message(account_id, multi_channel_message_request)
p result
rescue Bandwidth::ApiError => e
puts "Error when calling MultiChannelApi->create_multi_channel_message: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> create_multi_channel_message_with_http_info(account_id, multi_channel_message_request)
begin
# Create Multi-Channel Message
data, status_code, headers = api_instance.create_multi_channel_message_with_http_info(account_id, multi_channel_message_request)
p status_code # => 2xx
p headers # => { ... }
p data # => <CreateMultiChannelMessageResponse>
rescue Bandwidth::ApiError => e
puts "Error when calling MultiChannelApi->create_multi_channel_message_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | Your Bandwidth Account ID. | |
| multi_channel_message_request | MultiChannelMessageRequest |
CreateMultiChannelMessageResponse
- Content-Type: application/json
- Accept: application/json