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:

NameDescription
attenderIDUnique ID of the attender
fetchDefaultImageFetch the default image of the operator or the bot if the image is not set
operatorImageListenerCallback class for success and error callbacks

Error Codes:

CodeMessage
605mobilisten disabled
606invalid attender id
607image loading failed

Syntax:


				ZohoSalesIQ.Chat.fetchAttenderImage(attenderID,fetchDefaultImage, operatorImageListener);			

Example:


				ZohoSalesIQ.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
  } 
});