Hi Guys,

I am trying to learn modules in Perl.. I was checking the documentation of Net::Twitter::Role::OAuth which has text:

========
In a web application mode, you need to save the oauth_token and oauth_token_secret somewhere when you redirect the user to the OAuth authorization
       URL.

         sub twitter_authorize : Local {
             my($self, $c) = @_;

my $nt = Net::Twitter->new(traits => [qw/API::REST OAuth/], %param); my $url = $nt->get_authorization_url(callback => $callbackurl);

             $c->response->cookies->{oauth} = {
                 value => {
                     token => $nt->request_token,
                     token_secret => $nt->request_token_secret,
                 },
             };

             $c->response->redirect($url);
         }
========

What is $c here? Or more specifically, which module should I load to get this line working (some http module I guess, but there are so many of them I do not know):

$c->response->redirect($url);

--
Regards,
Vimal Kumar K

| vimalZworld.com * technomenace.com * twitter.com/vimal7370 |
| E: vimal7370 at gmail dot com             P: +919947450760 |



--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to