Skip to content

Gem: POST method needs "body" rather then "parameters" parameter #53

@daniel-sullivan

Description

@daniel-sullivan

After being unsuccessful in doing a POST request as per the documentation I dug into the code in the current version of the gem on rubygems (unirest-1.0.8) and discovered that while the documentation states that the post method takes a "parameters" parameter with the POST body, the actual method is expecting a "body" parameter.

  def self.post(url, headers = {}, body = nil, &callback)
    return HttpClient.request(:post, url, headers, body, &callback)
  end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions