Class: SevenApi::Resources::Voice

Inherits:
SevenApi::Resource show all
Defined in:
lib/seven_api/resources/voice.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

#send(params) ⇒ String, Hash

Convert text to speech, call number and read voice message out loud. read more: docs.seven.io/en/rest-api/endpoints/voice#send-voice-call

Parameters:

  • params (Hash)

Returns:

  • (String, Hash)


17
18
19
# File 'lib/seven_api/resources/voice.rb', line 17

def send(params)
  request(params)
end