[Pidgin] #2596: Yahoo Avatars (separate image from the user icon) via HTTP interface should be used if no user icon specified
Pidgin
trac at pidgin.im
Thu Aug 16 17:09:22 EDT 2007
#2596: Yahoo Avatars (separate image from the user icon) via HTTP interface should
be used if no user icon specified
-----------------------+----------------------------------------------------
Reporter: evands | Owner:
Type: defect | Status: new
Priority: minor | Milestone:
Component: libpurple | Version: 2.1.0
Keywords: | Pending: 0
-----------------------+----------------------------------------------------
Moved from [http://trac.adiumx.com/ticket/7472 Adium Trac #7472]:
'''Arlo Rose writes''':
Hi,
Don't know which of you focuses on the Yahoo! bit of Adium, but if someone
has a little bit of time, here's a really simple way of getting at the
Yahoo user's default Avatar icon. These aren't the image ones you display
now, but the flash based ones (that can be rendered as PNGs and JPGs too).
If a user doesn't have a normal avatar, you'd fall back to their Yahoo
Avatar before showing something generic.
The URL to grab the avatar is:
http://lookup.avatars.yahoo.com/images?yid=" + yahoo-id +
"&size=medium&type=png&pty=14000
Note that the size and type are attributes are changeable as well. Size
accepts small, medium and large. Type accepts png, jpg, and swf.
The pty argument is a reference number for the internal Yahoo! property
using the API, this one is generic and is safe to use.
Also note that the resulting URL will redirect you to a final URL that
obfuscated the user ID. There's no way around that.
There's another API that gets you the avatar as a transparent PNG with no
background. It's the full body avatar, and I'm not sure of all the
parameters it takes, but if it's of interest, I'm happy to dig up how it
works.
Cheers, Arlo Rose
--
Ticket URL: <http://developer.pidgin.im/ticket/2596>
Pidgin <http://pidgin.im>
Pidgin
More information about the Tracker
mailing list