Obtaining a Buddy Icon using Web AIM

In order to obtain a buddyIcon you would invole the following URL using HTTP:

http://api.oscar.aol.com/expressions/get?f=xml&t=[screenname]&type=buddyIcon

Where [screenname] is the person you’re looking to find the icon URL for. It will return an XML page that has all the info for screenname.

For example, check out the following link using a test screen name as the target argument for a test buddy who has an icon:

http://api.oscar.aol.com/expressions/get?f=xml&t=mtest004&type=buddyIcon

This should return an XML response with all the details, including the url field.

Response below. To view the icon, navigate to the URL field… http://api.oscar.aol.com/expressions/getAsset?t=mtest004&f=native&type=buddyIcon&id=0110b2e8a16872c770f2147cc10da91f419b

<response>
<statusCode>200</statusCode>
<statusText>Ok</statusText>
<data>
<expressions>
<expression>
<type>buddyIcon</type>
<url>

http://api.oscar.aol.com/expressions/getAsset?t=mtest004&f=native&type=buddyIcon&id=0110b2e8a16872c770f2147cc10da91f419b

</url>
<id>0110b2e8a16872c770f2147cc10da91f419b</id>
</expression>
</expressions>
</data>
</response>

Check out the following link using a test screen name as the target argument for a test buddy who does NOT have an icon:

Request:

http://api.oscar.aol.com/expressions/get?f=xml&t=mtest0002&type=buddyIcon

Response: Note that there is no expression or icon for this test Screenname.

<response>
<statusCode>200</statusCode>
<statusText>Ok</statusText>
<data>
<expressions/>
</data>
</response>

Bookmark and Share

Leave a comment

Your comment