lib/mailersend/recipients/recipients.rb in mailersend-ruby-2.0.1 vs lib/mailersend/recipients/recipients.rb in mailersend-ruby-2.0.2

- old
+ new

@@ -19,18 +19,18 @@ hash = { 'page' => page, 'limit' => limit } - client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: '/v1/recipients', + client.http.get(URI::HTTPS.build(host: MAILERSEND_API_BASE_HOST, path: '/v1/recipients', query: URI.encode_www_form(hash))) end def single(recipient_id:) - client.http.get("#{API_URL}/recipients/#{recipient_id}") + client.http.get("#{MAILERSEND_API_URL}/recipients/#{recipient_id}") end def delete(recipient_id:) - client.http.delete("#{API_URL}/recipients/#{recipient_id}") + client.http.delete("#{MAILERSEND_API_URL}/recipients/#{recipient_id}") end end end