title: how to get the httparty call return something inside an array
body: <pre><code>[{"Id"=&gt;1015765, "Date"=&gt;"/Date(1468062000000+0100)/", "EventGroupName"=&gt;"Electric Daisy Carnival", "VenueName"=&gt;"Milton Keynes Bowl", "Town"=&gt;"Milton Keynes", "Country"=&gt;"UK", "TicketCount"=&gt;35, "Currency"=&gt;"GBP", "MinPrice"=&gt;79.75, "LayoutId"=&gt;3932, "EventGroupId"=&gt;32347, "VenueId"=&gt;3596}]
  </code></pre>
  
  <p>I'm getting this response form an api im calling</p>
  
  <p>How do i go about getting the id to use elsewhere in the controller???</p>
  
  <p>Heres my controller</p>
  
  <pre><code>api = HTTParty.get("url here").parsed_response
  id = api["Events"]
  </code></pre>
  
  <p>I have tried sticking  <code>[Id]</code> on the end of the <code>id</code> call but that didnt work.</p>
  
  <p>Sam</p>
  
  <p><strong>Additional</strong></p>
  
  <p>Heres what i tried :)</p>
  
  <pre><code>id = api["Events"].first["Id"]
      results = HTTParty.get("partoneofurl" + id + "parttwoofurl")
  
  
   syntax error, unexpected tIDENTIFIER, expecting ')' 
  
   syntax error, unexpected ')', expecting keyword_end
  </code></pre>