user avatars

179 views
Skip to first unread message

chris van hooser

unread,
May 17, 2012, 5:23:29 PM5/17/12
to tumbl...@googlegroups.com
Is there a better way of getting a users avatar, other then calling the avatar API for each user?
I'd like to display the user's avatar when i fetch the dashboard post, but it would seem wasteful to call the avatar API up to 20 times.

The only place i see an avatar_url returned is from the avatar API.

Is it returned with any other API's and its just not documented?

hostj2me

unread,
May 18, 2012, 7:09:57 AM5/18/12
to tumbl...@googlegroups.com
You can build the avatar url using the blog name. Take a look at the Avatar section of the documentation;

http://www.tumblr.com/docs/en/api/v2#blog-avatar

You can get a blog's avatar in 9 different sizes. The default size is 64x64.

Examples

chris van hooser

unread,
May 18, 2012, 10:25:57 PM5/18/12
to tumbl...@googlegroups.com
Oh perfect.

I was thinking you had to send a request and wait for the response.

Thanks a lot!
Reply all
Reply to author
Forward
0 new messages