Skip to content

Instantly share code, notes, and snippets.

@hirobert
Forked from rektide/noun-project.js
Last active April 30, 2024 17:09
Show Gist options
  • Star 22 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save hirobert/3bca9fd56b9b4418b1ca to your computer and use it in GitHub Desktop.
Save hirobert/3bca9fd56b9b4418b1ca to your computer and use it in GitHub Desktop.
var OAuth = require('oauth')
// `npm install oauth` to satisfy
// website: https://github.com/ciaranj/node-oauth
var KEY = "<INSERT KEY HERE>"
var SECRET = "<INSERT SECRET HERE>"
var oauth = new OAuth.OAuth(
'http://api.thenounproject.com',
'http://api.thenounproject.com',
KEY,
SECRET,
'1.0',
null,
'HMAC-SHA1'
)
oauth.get(
'http://api.thenounproject.com/icon/6324',
null,
null,
function (e, data, res){
if (e) console.error(e)
console.log(require('util').inspect(data))
}
)
{
"dependencies": {
"oauth": "^0.9.12"
}
}
@SamiQu
Copy link

SamiQu commented Apr 30, 2024

Ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment