Class: SevenApi::Resources::Rcs
- Inherits:
-
SevenApi::Resource
- Object
- SevenApi::Resource
- SevenApi::Resources::Rcs
- Defined in:
- lib/seven_api/resources/rcs.rb
Constant Summary
Constants inherited from SevenApi::Resource
Instance Attribute Summary
Attributes inherited from SevenApi::Resource
#api_key, #builder, #conn, #endpoint, #http_methods, #request_methods, #sent_with
Instance Method Summary collapse
-
#delete(params) ⇒ Hash
Delete scheduled RCS read more: docs.seven.io/en/rest-api/endpoints/rcs#delete-rcs.
-
#dispatch(params) ⇒ Hash
Send RCS read more: docs.seven.io/en/rest-api/endpoints/rcs#send-rcs.
-
#event(params) ⇒ Hash
Send Event read more: docs.seven.io/en/rest-api/endpoints/rcs#events.
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
27 28 29 |
# File 'lib/seven_api/resources/rcs.rb', line 27 def delete(params) request({}, {}, "/messages/#{params[:id]}") end |
#dispatch(params) ⇒ Hash
Send RCS read more: docs.seven.io/en/rest-api/endpoints/rcs#send-rcs
19 20 21 |
# File 'lib/seven_api/resources/rcs.rb', line 19 def dispatch(params) request(params, {}, '/messages') end |
#event(params) ⇒ Hash
Send Event read more: docs.seven.io/en/rest-api/endpoints/rcs#events
35 36 37 |
# File 'lib/seven_api/resources/rcs.rb', line 35 def event(params) request(params, {}, '/events') end |