Skip to content

Commit

Permalink
Merge branch 'idottv-master'
Browse files Browse the repository at this point in the history
  • Loading branch information
jrconlin committed May 24, 2014
2 parents 2815057 + b4ac8d2 commit 73e9a0a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.pod
Expand Up @@ -36,6 +36,25 @@ L<http://github.com/itrelease/oauthsimple>
OAuth Developers may be interested in my OAuthTestPage at:
L<http://jrconlin.github.com/OAuthTestPage/>
This will display OAuth1a valid elements and values so you can verify things are working correctly.
=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

Expand Down
6 changes: 6 additions & 0 deletions js/OAuthSimple.js
Expand Up @@ -482,3 +482,9 @@ if (OAuthSimple === undefined)
return self;
};
}


// CommonJS Support
if (module && exports) {
module.exports = OAuthSimple;
}
14 changes: 14 additions & 0 deletions package.json
@@ -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"
}

0 comments on commit 73e9a0a

Please sign in to comment.