The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::Google::DataAPI::Auth::OAuth - OAuth 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.

AUTHOR

Nobuo Danjou <nobuo.danjou@gmail.com>

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.