zmerlinz has asked for the wisdom of the Perl Monks concerning the following question:
but i get an error saying "Can't use a Flickr::API::Response object as a URI at /usr/share/perl5/HTTP/Request/Common.pm line 104" any ideas to why i am getting this ? full code isrequire LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->proxy('http', 'http://wwwcache.aber.ac.uk:8080/'); my $api = new Flickr::API({'key' => ''}); #There is an api key here! my $response = $api->execute_method('flickr.test.echo', { 'foo' => 'bar', 'baz' => 'quux', }); $ua->get($response);
Thank you for your time and help with this.#!/usr/bin/perl -w use Flickr::API; use Data::Dumper; require LWP::UserAgent; my $ua = LWP::UserAgent->new; $ua->proxy('http', 'http://wwwcache.aber.ac.uk:8080/'); my $api = new Flickr::API({'key' => ''}); #there is normally an API ke +y here my $response = $api->execute_method('flickr.test.echo', { 'foo' => 'bar', 'baz' => 'quux', }); $ua->get($response); print "Success: $response->{success}\n"; print "Error code: $response->{error_code}\n"; print Dumper ($response);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Flickr::API and using a proxy
by fauxmarc (Initiate) on Dec 08, 2006 at 16:23 UTC | |
by pemungkah (Priest) on Dec 09, 2006 at 01:47 UTC | |
by zmerlinz (Novice) on Dec 08, 2006 at 16:37 UTC | |
|
Re: Flickr::API and using a proxy
by Corion (Patriarch) on Dec 08, 2006 at 14:14 UTC | |
by zmerlinz (Novice) on Dec 08, 2006 at 15:20 UTC | |
by Corion (Patriarch) on Dec 08, 2006 at 15:27 UTC | |
by zmerlinz (Novice) on Dec 08, 2006 at 15:42 UTC | |
by Corion (Patriarch) on Dec 08, 2006 at 15:47 UTC | |
|