Sha256: 3b5fe0ee1935da17e9fe47c92b6a7caeb10968042570ce8ea8beed8ab7d8af97
Contents?: true
Size: 486 Bytes
Versions: 40
Compression:
Stored size: 486 Bytes
Contents
require 'sendgrid-ruby' sg = SendGrid::API.new(api_key: ENV['SENDGRID_API_KEY']) ################################################## # Retrieve email statistics by country and state/province. # # GET /geo/stats # params = JSON.parse('{"end_date": "2016-04-01", "country": "US", "aggregated_by": "day", "limit": 1, "offset": 1, "start_date": "2016-01-01"}') response = sg.client.geo.stats.get(query_params: params) puts response.status_code puts response.body puts response.headers
Version data entries
40 entries across 40 versions & 1 rubygems