Sha256: 8b008cec69408b1f51530886668d91928a06e62851933d44c9f6e789089f4757
Contents?: true
Size: 684 Bytes
Versions: 9
Compression:
Stored size: 684 Bytes
Contents
# -*- encoding: utf-8 -*- $LOAD_PATH.unshift File.dirname(__FILE__) require 'sendgrid4r/rest/request' module SendGrid4r module REST module Stats # # SendGrid Web API v3 Stats - Global # module Global include SendGrid4r::REST::Request def get_global_stats( start_date:, end_date: nil, aggregated_by: nil, &block ) params = { start_date: start_date, end_date: end_date, aggregated_by: aggregated_by } resp = get(@auth, "#{BASE_URL}/stats", params, &block) SendGrid4r::REST::Stats.create_top_stats(resp) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems