Bold360 and BoldChat Developer Center

Request chat history in email

While chatting the user can request that he or she needs the transcript of the current chat sent in email at the end of the chat.

It is requested this way:

id<BCCancelable> cancelable = [chatSession emailChatHistory:<email address> delegate:<delegate>];

The results are called on the delegate:

- (void)bcChatSessionDidRequestChatHistory:(id<BCChatSession>)chat {
    //success
}
- (void)bcChatSession:(id<BCChatSession>)chat didFailToRequestChatHistoryWithError:(NSError *)error {
    //Request failed.
    //Check error.code to values from BCErrorCodes.h to find out the cause of the error.
}