0.0.6 • Published 11 years ago

hawkerquest v0.0.6

Weekly downloads
1
License
-
Repository
github
Last release
11 years ago

hawkerquest

A wrapper that puts hawk in hyperquest, and still works on the browser.

Installation

npm install hawkerquest

How to use

var hawkerquest = require('hawkerquest');
// treat it like hyperquest

API

Hawk credentials

var hawkerquest = require('hawkerquest');
var credential = {
  "key": "werxhqb98rpaxn39848xrunpaw3489ruxnpa98w4rxn",
  "algorithm": "sha256",
  "id": "dh37fgj492je"
}


hawkerquest('http://resource.com/endpoint', {
  hawk: credential
}).pipe(process.stdout);

Bewit

var hawkerquest = require('hawkerquest');
var bewit = 'ZGgzN2ZnajQ5MmplXDEzNzU5NzM0NzFcSFJuSTRSR0l5bitVTXRQdjJ0MzIvMXhRc2pOSWlEN0JYSGFZMnJvMkloST1c';


hawkerquest('http://resource.com/endpoint', {
  bewit: bewit
}).pipe(process.stdout);

Browser support

Clone this repository, make and then you'll find inside the build folder a bundle that attaches the hyperquest to the global object, and works on the browser. Hawks [browser.js](https://raw.github.com/hueniverse/hawk/master/lib/browser.js) was used.

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago