Class: BurstSms::API
- Inherits:
-
Object
- Object
- BurstSms::API
- Includes:
- ListsAdd, ListsAddRecipient, ListsDelete, ListsDeleteRecipient, ListsGet, ListsGetRecipients, ListsGetUnsubscribed, MessageResponses, MessagesAdd, MessagesGet, MessagesMultiple, HappyMapper
- Defined in:
- lib/burstsms/api.rb
Instance Method Summary collapse
-
#initialize(api_key, api_secret) ⇒ API
constructor
A new instance of API.
Methods included from ListsDeleteRecipient
#delete_list_recipient, #delete_list_recipient_body
Methods included from ListsAddRecipient
#add_list_recipient, #add_list_recipient_body
Methods included from ListsGetUnsubscribed
#get_list_unsubscribed, #get_list_unsubscribed_body
Methods included from ListsGetRecipients
#get_list_recipients, #get_list_recipients_body
Methods included from ListsDelete
#delete_list, #delete_list_body
Methods included from ListsAdd
Methods included from ListsGet
Methods included from MessageResponses
#message_responses, #message_responses_body
Methods included from MessagesAdd
#add_message, #add_message_body
Methods included from MessagesGet
#get_messages, #get_messages_body
Methods included from MessagesMultiple
#send_message, #send_message_body
Constructor Details
#initialize(api_key, api_secret) ⇒ API
Returns a new instance of API.
34 35 36 37 38 |
# File 'lib/burstsms/api.rb', line 34 def initialize(api_key, api_secret) self.key = api_key self.secret = api_secret self.version = BurstSms::API_VERSION end |