JR ConlinandGitHub b89f20ccdd Merge pull request #38 from artu-ole/master
Fix ReferenceError: module is not defined
2018-02-22 08:47:09 -08:00
2016-08-16 15:39:47 -04:00
2015-01-13 09:09:48 +00:00
2012-09-17 13:14:00 -06:00
2015-08-01 19:00:58 -07:00

=head1 NAME

OAuthSimple - a very simple OAuth 1.0 signed request generator

=head1 SYNOPSIS

See source comments for usage examples

=head1 DESCRIPTION

OAuthSimple aids in building valid OAuth 1.0 requests. It does not perform
token requests by itself, however you can use it to build the request calls.

I've tried to build the library to be fairly common so that if you're familiar
with how it works in one language, you can use it in any other. Right now the
following languages are supported: PHP, Javascript, Perl, Python. I'd love to add additional
languages and may do so in the future. (I'd be happy to accept contributions,
hint, hint.)

Guido Schlabitz has provided a useful example for how to use
OAuthSimple to connect to Google
L<http://github.com/jrconlin/oauthsimple/blob/master/php/example.php>

Dave Bagler has provided a Composer Package L<https://packagist.org/packages/baglerit/oauthsimple>.
His fork has more details: L<https://github.com/BaglerIT/OAuthSimple>

OAuthSimple accepts arguments in a variety of formats and returns a structure
containing valid elements, including a fully structured URL, an Authorization
header and the signature value. You should only use either the Authorization
Header (as per the spec), or the fully structured URL. (Again, see source
comments for appropriate usage.)

Please note that the Javascript version is not heavily optimized at this time.
If you wish to use a more optimized version, please consult
Anton Byrna's fork
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

Code is released under a BSD licence.


S
Description
Simple, standardized OAuth signature generator
Readme
301 KiB
Languages
PHP 31.8%
JavaScript 24.1%
Perl 24%
Python 16%
HTML 3.9%
Other 0.2%