Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Net-Twitter CPAN distribution.

Report information
The Basics
Id: 42177
Status: resolved
Worked: 10 min
Priority: 0/
Queue: Net-Twitter

People
Owner: cthom [...] cpan.org
Requestors: christopher.jowell [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Net::Tweet & Avatar Image
Date: Tue, 06 Jan 2009 14:03:08 +0100
To: bug-net-twitter [...] rt.cpan.org
From: Bhima Pandava <christopher.jowell [...] gmail.com>
Hi, I have a bug report and what I think is a feature request. 1: On the CPAN web page for NET::Tweet in the section "Bugs & Limitations" there is a bad URL (with *h*https) which goes to rt.cpan.org which bad certificate. Look: "Please report any bugs or feature requests to bug-net-twitter@rt.cpan.org, or through the web interface at *h*https://rt.cpan.org/Dist/Display.html?Queue=Net-Twitter." 2: I am using Net::Tweet to pass incoming tweets to Growl (via Mac::Growl). What I can not find is a method for the avatar or image associated with the account of the incoming Tweet. I know it's possible because I see these images in other Tweet applications like "TweetDeck" which was written for Adobe air. So I suspect that is something in the Tweet API which is not supported by Net::Tweet. Thanks!
Hi, I will fix the bad URL in the POD in the next release which should be some time this week. As to the bad SSL cert on rt.cpan.org, please see: http://www.cpan.org/modules/04pause.html#ssl You need to add the CACert cert to your browser. Twitter does not have any method to retrieve the actual image that is used for avatars. The way that apps get the avatar image is by getting the URL for the image out of the show_user method. If you call: $result = $twit->show_user('net_twitter'); The hashref returned into $result will contain a key called 'profile_image_url' containing the URL to the avatar. For the net_twitter user, this looks like: 'profile_image_url' => 'http:\\/\\/s3.amazonaws.com\\/twitter_production\\/profile_images\\/29624212\\/twitter_normal.jpg' You would need to unescape the slashes, which Twitter sends.
One more thing, the string I pasted was incorrect. It was output from Data::Dumper. Twitter returns the following string: http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/29624212\/twitter_normal.jpg for profile_image_url. Data::Dumper, which I used in my quick script to see the output, was escaping the single \ into double \\. I will investigate and consider putting in an option to unescape certain fields.
Net::Twitter 2.00 has been released, which requires JSON::Any 1.19. JSON::Any 1.19 addresses the escaping issue which only occurs in JSON::Syck.