Sha256: 4c576e351c37785954c4afce5856c31c4086b963b460314c35d18f0200ba3888

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true

require 'seven_api/resource'

# This module exposes the methods for communicating with the API endpoint /voice.
module SevenApi::Resources
  class Voice < SevenApi::Resource
    @endpoint = SevenApi::Endpoint::VOICE
    @http_methods = {
      :send => :post,
    }

    # Convert text to speech, call number and read voice message out loud.
    # read more: https://www.seven.io/en/docs/gateway/http-api/voice/
    # @param params [Hash]
    # @return [String,Hash]
    def send(params)
      request(params)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
seven_api-0.5.0 lib/seven_api/resources/voice.rb