Class: SevenApi::Resources::Rcs

Inherits:
SevenApi::Resource show all
Defined in:
lib/seven_api/resources/rcs.rb

Constant Summary

Constants inherited from SevenApi::Resource

SevenApi::Resource::BASE_PATH

Instance Attribute Summary

Attributes inherited from SevenApi::Resource

#api_key, #builder, #conn, #endpoint, #http_methods, #request_methods, #sent_with

Instance Method Summary collapse

Methods inherited from SevenApi::Resource

get_endpoint, get_http_methods, #initialize

Constructor Details

This class inherits a constructor from SevenApi::Resource

Instance Method Details

#delete(params) ⇒ Hash

Delete scheduled RCS read more: docs.seven.io/en/rest-api/endpoints/rcs#delete-rcs

Parameters:

  • params (Hash)

Returns:

  • (Hash)


27
28
29
# File 'lib/seven_api/resources/rcs.rb', line 27

def delete(params)
  request({}, {}, "/messages/#{params[:id]}")
end

#dispatch(params) ⇒ Hash

Parameters:

  • params (Hash)

Returns:

  • (Hash)


19
20
21
# File 'lib/seven_api/resources/rcs.rb', line 19

def dispatch(params)
  request(params, {}, '/messages')
end

#event(params) ⇒ Hash

Parameters:

  • params (Hash)

Returns:

  • (Hash)


35
36
37
# File 'lib/seven_api/resources/rcs.rb', line 35

def event(params)
  request(params, {}, '/events')
end