Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@livechat.chat.list does not return json #7

Open
jamby opened this issue Nov 1, 2016 · 1 comment
Open

@livechat.chat.list does not return json #7

jamby opened this issue Nov 1, 2016 · 1 comment

Comments

@jamby
Copy link

jamby commented Nov 1, 2016

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!

@cxz
Copy link
Owner

cxz commented Nov 1, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants