Changeset 4778
- Timestamp:
- 01/17/08 16:43:32 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Atompub-Client-OAuth/trunk/lib/Atompub/Client/OAuth.pm
r4769 r4778 1 package Atompub::Client::OAuth :1 package Atompub::Client::OAuth; 2 2 3 3 use strict; … … 32 32 $your_app->redirect($consumer->url_to_authorize()); 33 33 34 # after use authorized your application as a consumer.34 # after user authorized your application as a consumer. 35 35 my $atoken = $consumer->get_access_token( token => $atoken ); 36 36 … … 47 47 my ($client, $consumer) = @_; 48 48 if ($consumer) { 49 unless (eval{ $consumer->isa('OAuth::Lite::Consumer') }) 49 unless (eval{ $consumer->isa('OAuth::Lite::Consumer') }) { 50 50 Carp::croak(qq/consumer should be OAuth::Lite::Consumer object/) 51 51 } … … 58 58 my ($client, $token) = @_; 59 59 if ($token) { 60 unless (eval{ $ consumer->isa('OAuth::Lite::Token') })60 unless (eval{ $token->isa('OAuth::Lite::Token') }) { 61 61 Carp::croak(qq/consumer should be OAuth::Lite::Token object/) 62 62 } … … 95 95 at your option, any later version of Perl 5 you may have available. 96 96 97 98 97 =cut 99 98
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)