title: How to do a HTTP GET in coffeescript to get a JSON from a REST API
body: <p>I'm looking for a simple way to fetch a REST API in Coffeescript and get a json. I'm using the <a href="https://github.com/request/request" rel="nofollow">request library</a>. When I do that, nothing happen, no error.</p>
  
  <pre><code>request = require 'request'
  
  resp = ""
  request.get {uri:'https://api.service.co/search?query=paris', json : true}, (err, r, body) -&gt; resp = body
  console.log "BODY: " + resp
  </code></pre>
  
  <p>What do I do wrong? Do you know a better way to get a json from a REST api in coffeescript? Thanks a lot!</p>