lib/phaxio/client.rb in phaxio-0.2.0 vs lib/phaxio/client.rb in phaxio-0.3.0
- old
+ new
@@ -1,7 +1,7 @@
module Phaxio
- include HTTParty
+ include HTTMultiParty
base_uri 'https://api.phaxio.com/v1'
module Config
attr_accessor :api_key, :api_secret
end
@@ -138,10 +138,10 @@
def get_account_status
send_post("/accountStatus", {})
end
def send_post(path, options)
- post(path, options.merge!({api_key: api_key, api_secret: api_secret}))
+ post(path, query: options.merge!({api_key: api_key, api_secret: api_secret}))
end
end
# Public: Configure Phaxio with your api_key and api_secret
#