Class: Ansible::Ruby::Modules::Twilio
- Inherits:
-
Base
- Object
- Ansible::Ruby::Models::Base
- Base
- Ansible::Ruby::Modules::Twilio
- Defined in:
- lib/ansible/ruby/modules/generated/notification/twilio.rb
Overview
Sends a text message to a phone number through the Twilio messaging API.
Instance Method Summary collapse
-
#account_sid ⇒ String
User’s Twilio account token found on the account page.
-
#auth_token ⇒ String
User’s Twilio authentication token.
-
#from_number ⇒ Integer
The Twilio number to send the text message from, format +15551112222.
-
#media_url ⇒ String?
A URL with a picture, video or sound clip to send with an MMS (multimedia message) instead of a plain SMS.
-
#msg ⇒ String
The body of the text message.
-
#to_number ⇒ Array<Integer>, Integer
One or more phone numbers to send the text message to, format +15551112222.
Methods inherited from Base
Methods inherited from Ansible::Ruby::Models::Base
attr_option, attr_options, attribute, fix_inclusion, #initialize, remove_existing_validations, #to_h, validates
Constructor Details
This class inherits a constructor from Ansible::Ruby::Models::Base
Instance Method Details
#account_sid ⇒ String
Returns user’s Twilio account token found on the account page.
12 |
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 12 attribute :account_sid |
#auth_token ⇒ String
Returns user’s Twilio authentication token.
16 |
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 16 attribute :auth_token |
#from_number ⇒ Integer
Returns the Twilio number to send the text message from, format +15551112222.
28 |
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 28 attribute :from_number |
#media_url ⇒ String?
Returns a URL with a picture, video or sound clip to send with an MMS (multimedia message) instead of a plain SMS.
32 |
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 32 attribute :media_url |
#msg ⇒ String
Returns the body of the text message.
20 |
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 20 attribute :msg |
#to_number ⇒ Array<Integer>, Integer
Returns one or more phone numbers to send the text message to, format +15551112222.
24 |
# File 'lib/ansible/ruby/modules/generated/notification/twilio.rb', line 24 attribute :to_number |