All URIs are relative to https://api.messente.com/v1
Method | HTTP request | Description |
---|---|---|
send_bulk_omnimessage | POST /omnimessages | Sends a bulk Omnimessage |
send_bulk_omnimessage(bulk_omnimessage)
Sends a bulk Omnimessage
require 'time'
require 'messente_api'
# setup authorization
MessenteApi.configure do |config|
# Configure HTTP basic authorization: basicAuth
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = MessenteApi::BulkMessagingApi.new
bulk_omnimessage = MessenteApi::BulkOmnimessage.new({messages: [MessenteApi::Omnimessage.new({to: 'to_example', messages: [MessenteApi::SMS.new({text: 'Hello world!'})]})]}) # BulkOmnimessage | Bulk Omnimessage to be sent
begin
# Sends a bulk Omnimessage
result = api_instance.send_bulk_omnimessage(bulk_omnimessage)
p result
rescue MessenteApi::ApiError => e
puts "Error when calling BulkMessagingApi->send_bulk_omnimessage: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> send_bulk_omnimessage_with_http_info(bulk_omnimessage)
begin
# Sends a bulk Omnimessage
data, status_code, headers = api_instance.send_bulk_omnimessage_with_http_info(bulk_omnimessage)
p status_code # => 2xx
p headers # => { ... }
p data # => <BulkOmniMessageCreateSuccessResponse>
rescue MessenteApi::ApiError => e
puts "Error when calling BulkMessagingApi->send_bulk_omnimessage_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
bulk_omnimessage | BulkOmnimessage | Bulk Omnimessage to be sent |
BulkOmniMessageCreateSuccessResponse
- Content-Type: application/json
- Accept: application/json