Skip to product menu
Skip to main content

.fetchAttenderImage()

This API can be used to fetch the image of the person who has attended the chat.

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
error

Error is returned if an error occurs while using the API. The list of possible error codes returned by the API are listed below.

imageBase64 String

​Error Codes:

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

 

 

Syntax:

CopiedZohoSalesIQ.fetchAttenderImage(
    atttenderId: string,
    fetchDefaultImage: boolean,
    callback: (error: CallbackError, image: string) => void
  )

Example

CopiedZohoSalesIQ.fetchAttenderImage("001", true,(error, image) => 
{
   //your code
});