Learn R Programming

livechatR (version 0.1.0)

livechatGetChats: Create a list that contains 4 data frames containing chat sessions and raw chat text.

Description

Create a list that contains 4 data frames containing chat sessions and raw chat text.

Usage

livechatGetChats(account, date_from)

Arguments

account
defined by the livechatCreateAccount function
date_from
pull all chats from the date in the format YYYY-MM-DD

Value

A list of 4. The being a data.table of chat sessions, messages, postchat surveys and events

Examples

Run this code
# account <- livechatCreateAccount("email_here", "api_key_here")
# livechat_data <- livechatGetChats(account, date_from = "2016-02-23")
# str(livechat_data)
# livechat_data[[1]] %>% str # chat_sessions
# livechat_data[[2]] %>% str # messages
# livechat_data[[3]] %>% str # postchat_survey
# livechat_data[[4]] %>% str # events

Run the code above in your browser using DataLab