Chat.fetchAttenderImage()
This API can be used to fetch the image of the attender of the chat.The attenderId can be fetched from .getList() API
Parameters:
| Name | Description |
| attenderID | Unique ID of the attender |
| fetchDefaultImage | Fetch the default image of the operator or the bot if the image is not set |
| operatorImageListener | Callback class for success and error callbacks |
Error Codes:
| Code | Message |
| 605 | mobilisten disabled |
| 606 | invalid attender id |
| 607 | image loading failed |
Syntax:
CopiedZohoSalesIQ.Chat.fetchAttenderImage(attenderID,fetchDefaultImage, operatorImageListener);Example:
CopiedZohoSalesIQ.Chat.fetchAttenderImage("001",true, new OperatorImageListener()
{
@Override
public void onSuccess(Drawable operatorImage)
{
//your code here
}
@Override
public void onFailure(int code, String message)
{
//your code here
}
});