title: Sending a post query sent via HTTParty
body: <p>I'm working with the Buffer App API with HTTParty to try and add posts via the <a href="http://www.bufferapp.com/developers/api/updates#updatescreate" rel="nofollow">/updates/create</a> method, but the API seems to ignore my "text" parameter and throws up an error. If I do it via cURL on the command line it works perfectly. Here's my code:</p>
  
  <pre><code>class BufferApp
      include HTTParty
      base_uri 'https://api.bufferapp.com/1'
  
      def initialize(token, id)
          @token = token
          @id = id
      end
  
      def create(text)
          BufferApp.post('/updates/create.json', :query =&gt;  {"text" =&gt; text, "profile_ids[]" =&gt; @id, "access_token" =&gt; @token})
      end 
  end
  </code></pre>
  
  <p>And I'm running the method like this:</p>
  
  <pre><code>BufferApp.new('{access_token}', '{profile_id}').create('{Text}')
  </code></pre>
  
  <p>I've added <code>debug_output $stdout</code> to the class and it seems to be posting OK: </p>
  
  <pre><code>POST /1/updates/create.json?text=Hello%20there%20why%20is%20this%20not%20working%3F&amp;profile_ids[]={profile_id}&amp;access_token={access_token} HTTP/1.1\r\nConnection: close\r\nHost: api.bufferapp.com\r\n\r\n"
  </code></pre>
  
  <p>But I get an error. Am I missing anything?</p>