mirror of
https://github.com/jrconlin/oauthsimple.git
synced 2026-07-27 19:55:59 +00:00
Node.js Compatibility
This commit is contained in:
+19
@@ -33,6 +33,25 @@ If you wish to use a more optimized version, please consult
|
||||
Anton Byrna's fork
|
||||
L<http://github.com/itrelease/oauthsimple>
|
||||
|
||||
=head1 EXAMPLES
|
||||
|
||||
Node.js Installation
|
||||
|
||||
> npm install oauthsimple
|
||||
|
||||
Node.js Example
|
||||
|
||||
OAuthSimple = require('OAuthSimple')
|
||||
oauth = new OAuthSimple("token", "secret")
|
||||
request = oauth.sign
|
||||
action: "GET"
|
||||
path: "http://api.netflix.com/catalog/people"
|
||||
parameters: { term: 'DeNiro' }
|
||||
|
||||
// then use any library to request the following url
|
||||
request.signed_url
|
||||
|
||||
|
||||
=head1 LICENSE
|
||||
|
||||
Code is released under a BSD licence.
|
||||
|
||||
@@ -475,3 +475,9 @@ if (OAuthSimple === undefined)
|
||||
return self;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
// CommonJS Support
|
||||
if (module && exports) {
|
||||
module.exports = OAuthSimple;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "oauthsimple",
|
||||
"version": "0.0.1",
|
||||
"description": "git://github.com/idottv/oauthsimple.git",
|
||||
"main": "js/OAuthSimple.js",
|
||||
"scripts": {
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/idottv/oauthsimple.git"
|
||||
},
|
||||
"author": "jrconlin",
|
||||
"license": "BSD"
|
||||
}
|
||||
Reference in New Issue
Block a user