lib/createsend.rb in createsend-0.2.1 vs lib/createsend.rb in createsend-0.3.0
- old
+ new
@@ -55,10 +55,13 @@
# Provides high level CreateSend functionality/data you'll probably need.
class CreateSend
include HTTParty
- headers({ 'User-Agent' => "createsend-ruby-#{CreateSend::VERSION}", 'Content-Type' => 'application/json' })
+ headers({
+ 'User-Agent' => "createsend-ruby-#{CreateSend::VERSION}",
+ 'Content-Type' => 'application/json; charset=utf-8',
+ 'Accept-Encoding' => 'gzip, deflate' })
base_uri CreateSendOptions['base_uri']
basic_auth CreateSendOptions['api_key'], 'x'
# Sets the API key which will be used to make calls to the CreateSend API.
def self.api_key(api_key=nil)
\ No newline at end of file