Sha256: 6ab75aa9080c7f54c35e128eb201c8a3799548ceca3fdb6cd3dc74b65d8d9f80

Contents?: true

Size: 620 Bytes

Versions: 1

Compression:

Stored size: 620 Bytes

Contents

# frozen_string_literal: true

require 'seven_api/resource'

# This module exposes the methods for communicating with the API endpoint /validate_for_voice.
module SevenApi::Resources
  class ValidateForVoice < SevenApi::Resource
    @endpoint = SevenApi::Endpoint::VALIDATE_FOR_VOICE
    @http_methods = {
      :retrieve => :post,
    }

    # Validate a phone number for using it as caller ID via our voice API
    # read more: https://www.seven.io/en/docs/gateway/http-api/caller-ids/
    # @param params [Hash]
    # @return [Hash]
    def retrieve(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/validate_for_voice.rb