Nobuo Danjou > Net-Google-DataAPI > Net::Google::DataAPI::Auth::OAuth

Download:
Net-Google-DataAPI-0.2805.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.05   Source  

NAME ^

Net::Google::DataAPI::Auth::OAuth - (DEPRECATED) OAuth 1.0 support for Google Data APIs

SYNOPSIS ^

  use Net::Google::DataAPI::Auth::OAuth;

  my $auth = Net::Google::DataAPI::Auth::OAuth->new(
    consumer_key => 'consumer.example.com',
    consumer_secret => 'mys3cr3t',
    scope => ['http://spreadsheets.google.com/feeds/'],
  );
  my $url = $auth->get_authorize_token_url;

  # show the user $url and get $verifier

  $auth->get_access_token({verifier => $verifier}) or die;
  my $token = $auth->access_token;
  my $secret = $auth->access_token_secret;

DESCRIPTION ^

Net::Google::DataAPI::Auth::OAuth interacts with google OAuth service and adds Authorization header to given request.

DEPRECATED! ^

OAuth1.0 protocol is deprecated. Use Net::Google::DataAPI::Auth::OAuth2 instead.

ATTRIBUTES ^

You can make Net::Google::DataAPI::Auth::OAuth instance with those arguments below:

See http://code.google.com/intl/en-US/apis/accounts/docs/OAuth_ref.html for details.

AUTHOR ^

Nobuo Danjou <danjou@soffritto.org>

SEE ALSO ^

Net::Google::AuthSub

Net::OAuth

Net::Twitter::Role::OAuth

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: