<server>/v1/displayImage/avatar/{network}/{userId}
| HTTP Operation | Functionality | Input URI | Input Body | Response Headers | Response |
|---|---|---|---|---|---|
HEAD
|
Fetch the image URL only. The URL is returned using the 'X-Yahoo-msgr-imageurl' header.
|
|
N/A | X-Yahoo-msgr-imageurl represents the image location url.
|
N/A |
GET
|
Fetch avatar image for userId |
|
N/A | X-Yahoo-msgr-imageurl represents the image location url.
|
(image data) |
The following table shows the data type definition for the Avatar Image Management API.
| Attribute | Data Type | Description |
|---|---|---|
| size | string |
Standard image size definitions. Acceptable values include: " " " |
format
|
string |
Declares the format in which the image is requested. Acceptable values include: " " " |
redirect
|
string |
default = The server responds with the image data in the response body. |
height, width |
string | These two parameters should always be provided together to get image dimensions, and are valid only if the requested format is different than the image format stored on the server. |
<server>/v1/displayImage/custom/{network}/{userId}
| HTTP Operation | Functionality | Input URI | Input Body | Response Headers | Response |
|---|---|---|---|---|---|
GET
|
Fetch custom image for userId.
|
|
N/A |
X-Yahoo-msgr-ichecksum is the image checksum calculated by server
|
(image data) |
HEAD
|
Fetch the image URL only. The URL is returned using the 'X-Yahoo-msgr-imageurl' header. Note that the target URL does not support height, width, or format changes.
|
N/A | N/A | X-Yahoo-msgr-imageurl is the image URL
|
N/A |
POST
|
Upload a new custom image. The image URL and checksum is returned in the response headers. The maximum upload limit is 50 KB. |
-c
|
(image data) |
X-Yahoo-msgr-ichecksum is the image checksum calculated by server
|
N/A |
| Attribute | Data Type | Description |
|---|---|---|
redirect
|
string |
default = The server responds with the image data in the response body. |
format
|
string |
Declares the format in which the image is requested. Acceptable values include: " " " |
height, width |
string | These two parameters should always be provided together to get image dimensions, and are valid only if the requested format is different than the image format stored on the server. |
c
|
string | The crumb obtained from the Yahoo! Messenger IM SDK. |