lib/mailersend/analytics/analytics.rb in mailersend-ruby-2.0.1 vs lib/mailersend/analytics/analytics.rb in mailersend-ruby-2.0.2
- old
+ new
@@ -32,11 +32,11 @@
'recipient_id' => recipient_id,
'group_by' => group_by,
'tags[]' => tags
}
- client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: '/v1/analytics/date',
+ client.http.get(URI::HTTPS.build(host: MAILERSEND_API_BASE_HOST, path: '/v1/analytics/date',
query: URI.encode_www_form(hash.compact)))
end
def country(date_from:, date_to:, domain_id: nil, recipient_id: nil, tags: nil)
hash = {
@@ -45,11 +45,11 @@
date_from: date_from,
date_to: date_to,
'tags[]': tags
}
- client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: '/v1/analytics/country',
+ client.http.get(URI::HTTPS.build(host: MAILERSEND_API_BASE_HOST, path: '/v1/analytics/country',
query: URI.encode_www_form(hash.compact)))
end
def ua_name(date_from:, date_to:, domain_id: nil, recipient_id: nil, tags: nil)
hash = {
@@ -58,11 +58,11 @@
date_from: date_from,
date_to: date_to,
'tags[]': tags
}
- client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: '/v1/analytics/ua-name',
+ client.http.get(URI::HTTPS.build(host: MAILERSEND_API_BASE_HOST, path: '/v1/analytics/ua-name',
query: URI.encode_www_form(hash.compact)))
end
def ua_type(date_from:, date_to:, domain_id: nil, recipient_id: nil, tags: nil)
hash = {
@@ -71,10 +71,10 @@
date_from: date_from,
date_to: date_to,
'tags[]': tags
}
- client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: '/v1/analytics/ua-type',
+ client.http.get(URI::HTTPS.build(host: MAILERSEND_API_BASE_HOST, path: '/v1/analytics/ua-type',
query: URI.encode_www_form(hash.compact)))
end
end
end