Skip to content

Instantly share code, notes, and snippets.

@thisandagain
Created November 5, 2012 20:18
Show Gist options
  • Save thisandagain/4020110 to your computer and use it in GitHub Desktop.
Save thisandagain/4020110 to your computer and use it in GitHub Desktop.
API Client for DIY
var cork = require('cork');
module.exports = (function (key) {
cork.register('diy', {
base: 'https://api.diy.org',
headers: {
'x-diy-api-key': key
},
json: {}
});
return function (args, callback) {
cork.request('diy', args, callback);
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment