Sha256: 65d72d3ba2c6aff8e0c58c8b0f9677b03fedb3579ce577f82442864c5f3010da

Contents?: true

Size: 535 Bytes

Versions: 1

Compression:

Stored size: 535 Bytes

Contents

# frozen_string_literal: true

require 'seven_api/resource'

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

    # Send SMS
    # read more: https://www.seven.io/en/docs/gateway/http-api/sms-dispatch/
    # @param params [Hash]
    # @return [Integer,String,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/sms.rb