Created
November 5, 2012 20:18
-
-
Save thisandagain/4020110 to your computer and use it in GitHub Desktop.
API Client for DIY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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