You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I assumed @livechat.chat.list was supposed to return me an object that I can transform into a hash/json.
Same thing with @livechat.chat('SFNAC432') and get a single chat into a hash/json.
I can query each object and do .agents or .messages and get the information, but thought I'd be able to look at each object without having to curl for that information.
Thanks!
The text was updated successfully, but these errors were encountered:
Hi,
@livechats.chats.list return a list of chats. You have methods for each attribute like visitor_name, visitor_id, duration, etc. The list of attributes is in the documentation at: https://www.livechatinc.com/api/v1/chats/ (notice that this gem uses version v1 of their API, not the latest one). And the code "as is" does not expose a hash directly, sorry.
I'm confused on how this is supposed to work.
I assumed
@livechat.chat.list
was supposed to return me an object that I can transform into a hash/json.Same thing with
@livechat.chat('SFNAC432')
and get a single chat into a hash/json.I can query each object and do
.agents
or.messages
and get the information, but thought I'd be able to look at each object without having to curl for that information.Thanks!
The text was updated successfully, but these errors were encountered: