module Remind101::Client::Messages
Public Instance Methods
delete_message(message_id)
click to toggle source
Public: Destroy an existing message.
Examples
remind101.delete_message 4321
Returns the faraday response.
# File lib/remind101/client/messages.rb, line 43 def delete_message(message_id) api_delete("/messages/#{message_id}") end
get_message(id)
click to toggle source
Public: Returns a single message for the current user.
Examples
remind101.get_message(1234)
Returns the faraday response.
# File lib/remind101/client/messages.rb, line 21 def get_message(id) api_get("/messages/#{id}") end
get_messages(options = {})
click to toggle source
Public: Returns all messages for the current user.
Examples
remind101.get_messages
Returns the faraday response.
# File lib/remind101/client/messages.rb, line 10 def get_messages(options = {}) api_get('/messages', options) end
post_message(hash)
click to toggle source
Public: Creates a new message.
Examples
remind101.post_message message: { body: 'Hello World!', group_ids: [1234] }
Returns the faraday response.
# File lib/remind101/client/messages.rb, line 32 def post_message(hash) api_post('/messages', hash) end