Installing hyperagent.js

Bower

Make sure you have bower installed or install it via npm install -g bower.

bower install --save hyperagent

Old School

Integration

<script src="components/uri.js/src/URI.js"></script>
<script src="components/uri.js/src/URITemplate.js"></script>
<script src="components/q/q.js"></script>
<script src="components/hyperagent/dist/hyperagent.js"></script>

<script>
  var api = new Hyperagent.Resource('https://example.com/');
</script>