.fetchAttenderImage()

This API allows you to fetch the image of a chat's attender programmatically using the attendee ID of a chat. The boolean is used to specify if the default image is to be fetched via the API incase the attendee has not uploaded an image.

Parameters:

NameDescription
attenderIDUnique ID for each attender
fetchDefaultImageTo fetch the default image of the attender or the bot if the image is not set

Callbacks:

NameDescription
errorError is returned if an error occurs while using the API. The list of possible error codes returned by the API is listed below.
imageBase64 String

​Error Codes:

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


 

Usage

CopiedZohoSalesIQ.fetchAttenderImage("314", true, function(image){ 		
// your code goes here 
}, function(error){ 
	// your code to handle errors go here 
});