Skip to content

Commit

Permalink
Changed query to body
Browse files Browse the repository at this point in the history
  • Loading branch information
David committed Jun 14, 2014
1 parent 140c573 commit b50f259
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/sendgrid_toolkit/abstract_sendgrid_client.rb
Expand Up @@ -13,8 +13,8 @@ def initialize(api_user = nil, api_key = nil)

def api_post(module_name, action_name, opts = {})
base_path = compose_base_path(module_name, action_name)
response = HTTParty.post("https://#{SendgridToolkit.base_uri}/#{base_path}.json?",
:query => get_credentials.merge(opts),
response = HTTParty.post("https://#{SendgridToolkit.base_uri}/#{base_path}.json",
:body => get_credentials.merge(opts),
:format => :json)
if response.code > 401
raise(SendgridToolkit::SendgridServerError, "The sengrid server returned an error. #{response.inspect}")
Expand Down

0 comments on commit b50f259

Please sign in to comment.