Getting Avatar Through API

rated by 0 users
This post has 2 Replies | 1 Follower

Top 500 Contributor
Posts 49
Points 560
mattb Posted: Sat, Jul 26 2008 7:27 PM

Can someone give me a code example on how to grab a user's avatar based on a username being passed in?

Thanks,

http://community2.metalreview.com/forums

  • | Post Points: 20
Not Ranked
Posts 3
Points 75
youngB replied on Sun, Jul 27 2008 2:48 AM

you can use:

/api/membership.ashx/users/{Id}/avatar

for getting the avatar of the userID.

Top 500 Contributor
Posts 49
Points 560
mattb replied on Sun, Jul 27 2008 11:15 AM

So, if I want to use this in an another web application, I should be able to just use:  http://community.metalreview.com/api/membership.ashx/users/{Id}/avatar  for the src of my image tag dynamically putting the user's id in that {Id} spot?

If I copy/paste that URL with a valid UserID into the address bar, I get an error.

Edit:
This still isn't working.  http://community.metalreview.com/api/membership.ashx/users/2100/avatar     for a live example, isn't working.

http://community2.metalreview.com/forums

  • | Post Points: 5
Page 1 of 1 (3 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com