title: Correct syntax for get requests with rest-client
body: <p>Right now I can make a request as follows:</p>
  
  <pre><code>user = 'xxx'  
  token = 'xxx'  
  survey_id = 'xxx'  
  response = RestClient.get "https://survey.qualtrics.com/WRAPI/ControlPanel/api.php?Request=getLegacyResponseData&amp;User=#{user}&amp;Token=#{token}&amp;Version=2.0&amp;SurveyID=#{survey_id}&amp;Format=XML"
  </code></pre>
  
  <p>But there should be some nicer way to do this.  I've tried things like:</p>
  
  <pre><code>response = RestClient.get "https://survey.qualtrics.com/WRAPI/ControlPanel/api.php", :Request =&gt; 'getLegacyResponseData', :User =&gt; user, :Token =&gt; token, :Version =&gt; '2.0', :SurveyID =&gt; survey_id, :Format =&gt; 'XML'&lt;/code&gt;
  </code></pre>
  
  <p>and variations thereof (strings instead of symbols for keys, including { and }, making the keys lower case, etc.) but none of the combinations I tried seemed to work.  What's the correct syntax here?</p>
  
  <hr>
  
  <p>I tried the first suggestion below.  It didn't work.  For the record, this works:</p>
  
  <pre><code>surveys_from_api = RestClient.get "https://survey.qualtrics.com/WRAPI/ControlPanel/api.php?Request=getSurveys&amp;User=#{user}&amp;Token=#{token}&amp;Version=#{version}&amp;Format=JSON"
  </code></pre>
  
  <p>but this doesn't:</p>
  
  <pre><code>surveys_from_api = RestClient.get "https://survey.qualtrics.com/WRAPI/ControlPanel/api.php", :params =&gt; {:Request =&gt; 'getSurveys', :User =&gt; user, :Token =&gt; token, :Version =&gt; version, :Format =&gt; 'JSON'}
  </code></pre>
  
  <p>(where I've set <em>version = '2.0'</em>).</p>