.fetchAttenderImage()
This API can be used to fetch the image of the person who has attended the chat.
Parameters:
Name | Description |
attenderID | Unique ID for each attender |
fetchDefaultImage | To fetch the default image of the attender or the bot if the image is not set |
Callbacks:
Name | Description |
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. |
image | Base64 String |
Error Codes:
Code | Message |
500 | mobilisten not initialized |
605 | mobilisten disabled |
606 | invalid attender id |
607 | image loading failed |
Syntax:
CopiedZohoSalesIQ.fetchAttenderImage(
atttenderId: string,
fetchDefaultImage: boolean,
callback: (error: CallbackError, image: string) => void
)
Example
CopiedZohoSalesIQ.fetchAttenderImage("001", true,(error, image) =>
{
//your code
});