Sha256: db9ba94f274faf50854a7150b8b28d4cdcff99c87109135bc0043ab68a42e03a

Contents?: true

Size: 562 Bytes

Versions: 1

Compression:

Stored size: 562 Bytes

Contents

# frozen_string_literal: true

require 'sms77/resource'

# This module exposes the methods for communicating with the API endpoint /analytics.
module Sms77::Resources
  class Analytics < Sms77::Resource
    @endpoint = Sms77::Endpoint::ANALYTICS
    @http_methods = {
      :retrieve => :get,
    }

    # Retrieve analytics for associated API key
    # read more: https://www.sms77.io/en/docs/gateway/http-api/analytics/
    # @param params [Hash]
    # @return [Array]
    def retrieve(params = {})
      request(params)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sms77-0.5.0 lib/sms77/resources/analytics.rb