Skip to content

Instantly share code, notes, and snippets.

@morus12
Created December 5, 2013 11:23
Show Gist options
  • Save morus12/7803787 to your computer and use it in GitHub Desktop.
Save morus12/7803787 to your computer and use it in GitHub Desktop.
{
"type": "chat",
"id": "MX0A0JAZ0N",
"visitor_name": "Greg",
"visitor_id": "S1386170914.aecb35ee1b",
"visitor_ip": "4.49.114.135",
"agents": [{
"display_name": "Szymon",
"email": "s.golyski@livechatinc.com"
}],
"supervisors": [],
"rate": "not_rated",
"duration": 5744,
"group": [51],
"started": "Wed, 12/04/13 05:47:47 pm",
"pending": false,
"tags": [],
"messages": [{
"author_name": "Szymon",
"text": "Hello Greg. What brings you to LiveChat?",
"date": "Wed, 12/04/13 05:47:47 pm",
"timestamp": 1386175667,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "It appears the “chats” API method is suddenly returning extra and different fields, including a “type” field, and “operators” has become “agents”. We were not informed that the API would be changing, and it has broken some of our applications that rely on it. Is there a way we can change our API calls so that they return what our applications are expecting, without the new and different fields?",
"date": "Wed, 12/04/13 05:48:16 pm",
"timestamp": 1386175696,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "Sorry, I will have to check that with our developers",
"date": "Wed, 12/04/13 05:49:29 pm",
"timestamp": 1386175769,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Szymon",
"text": "I will email you as soon as I will have more details",
"date": "Wed, 12/04/13 05:50:17 pm",
"timestamp": 1386175817,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "OK thanks",
"date": "Wed, 12/04/13 05:51:00 pm",
"timestamp": 1386175860,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "You're welcome!",
"date": "Wed, 12/04/13 05:54:01 pm",
"timestamp": 1386176041,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "It looks like it's started working again. I think maybe the \"v2\" version of the method got deployed by accident in place of the \"old\" version? In any case it appears to have been restored to the way it was.",
"date": "Wed, 12/04/13 06:43:01 pm",
"timestamp": 1386178981,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "I just sent you an email",
"date": "Wed, 12/04/13 06:43:22 pm",
"timestamp": 1386179002,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Szymon",
"text": "Our developers are looking what exactly cause that and in the meantime they reverted the changes",
"date": "Wed, 12/04/13 06:43:43 pm",
"timestamp": 1386179023,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "OK...when I call the API with \"v2\", I get the new and different fields. That was happening even without the \"v2\", and now it's not.",
"date": "Wed, 12/04/13 06:44:32 pm",
"timestamp": 1386179072,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Greg",
"text": "We need it to keep working as it is (and as it had been until a couple hours ago) without the \"v2\".",
"date": "Wed, 12/04/13 06:46:00 pm",
"timestamp": 1386179160,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "Okay, I will let our devs know",
"date": "Wed, 12/04/13 06:46:55 pm",
"timestamp": 1386179215,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "Thanks...and I never received your email, by the way.",
"date": "Wed, 12/04/13 06:47:38 pm",
"timestamp": 1386179258,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "That's odd! I sent two actually because you've sent an email to us anyway",
"date": "Wed, 12/04/13 06:48:19 pm",
"timestamp": 1386179299,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "Might have gotten blocked by our spam filter for some reason. Was there anything in your emails that you haven't told me in this chat?",
"date": "Wed, 12/04/13 07:01:50 pm",
"timestamp": 1386180110,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "No, just wanted to let you know it should be working fine",
"date": "Wed, 12/04/13 07:04:47 pm",
"timestamp": 1386180287,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "ok...let me know if your developers have plans to re-deploy those same changes, so I can be ready to deal with issues if they come up again",
"date": "Wed, 12/04/13 07:07:09 pm",
"timestamp": 1386180429,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "Okay, will do!",
"date": "Wed, 12/04/13 07:07:28 pm",
"timestamp": 1386180448,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}],
"prechat_survey": [{
"key": "Your name:",
"value": "Greg",
"id": "137643087948706970"
}, {
"key": "E-mail:",
"value": "gwright@nvrinc.com",
"id": "137643087948706770"
}, {
"key": "Your website:",
"value": "www.ryanhomes.com",
"id": "137643087948708540"
}],
"events": [{
"author_name": "Szymon",
"text": "Hello Greg. What brings you to LiveChat?",
"date": "Wed, 12/04/13 05:47:47 pm",
"timestamp": 1386175667,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "It appears the “chats” API method is suddenly returning extra and different fields, including a “type” field, and “operators” has become “agents”. We were not informed that the API would be changing, and it has broken some of our applications that rely on it. Is there a way we can change our API calls so that they return what our applications are expecting, without the new and different fields?",
"date": "Wed, 12/04/13 05:48:16 pm",
"timestamp": 1386175696,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "Sorry, I will have to check that with our developers",
"date": "Wed, 12/04/13 05:49:29 pm",
"timestamp": 1386175769,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Szymon",
"text": "I will email you as soon as I will have more details",
"date": "Wed, 12/04/13 05:50:17 pm",
"timestamp": 1386175817,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "OK thanks",
"date": "Wed, 12/04/13 05:51:00 pm",
"timestamp": 1386175860,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "You're welcome!",
"date": "Wed, 12/04/13 05:54:01 pm",
"timestamp": 1386176041,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "It looks like it's started working again. I think maybe the \"v2\" version of the method got deployed by accident in place of the \"old\" version? In any case it appears to have been restored to the way it was.",
"date": "Wed, 12/04/13 06:43:01 pm",
"timestamp": 1386178981,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "I just sent you an email",
"date": "Wed, 12/04/13 06:43:22 pm",
"timestamp": 1386179002,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Szymon",
"text": "Our developers are looking what exactly cause that and in the meantime they reverted the changes",
"date": "Wed, 12/04/13 06:43:43 pm",
"timestamp": 1386179023,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "OK...when I call the API with \"v2\", I get the new and different fields. That was happening even without the \"v2\", and now it's not.",
"date": "Wed, 12/04/13 06:44:32 pm",
"timestamp": 1386179072,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Greg",
"text": "We need it to keep working as it is (and as it had been until a couple hours ago) without the \"v2\".",
"date": "Wed, 12/04/13 06:46:00 pm",
"timestamp": 1386179160,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "Okay, I will let our devs know",
"date": "Wed, 12/04/13 06:46:55 pm",
"timestamp": 1386179215,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "Thanks...and I never received your email, by the way.",
"date": "Wed, 12/04/13 06:47:38 pm",
"timestamp": 1386179258,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "That's odd! I sent two actually because you've sent an email to us anyway",
"date": "Wed, 12/04/13 06:48:19 pm",
"timestamp": 1386179299,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "Might have gotten blocked by our spam filter for some reason. Was there anything in your emails that you haven't told me in this chat?",
"date": "Wed, 12/04/13 07:01:50 pm",
"timestamp": 1386180110,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "No, just wanted to let you know it should be working fine",
"date": "Wed, 12/04/13 07:04:47 pm",
"timestamp": 1386180287,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"author_name": "Greg",
"text": "ok...let me know if your developers have plans to re-deploy those same changes, so I can be ready to deal with issues if they come up again",
"date": "Wed, 12/04/13 07:07:09 pm",
"timestamp": 1386180429,
"user_type": "visitor",
"type": "message"
}, {
"author_name": "Szymon",
"text": "Okay, will do!",
"date": "Wed, 12/04/13 07:07:28 pm",
"timestamp": 1386180448,
"agent_id": "s.golyski@livechatinc.com",
"user_type": "agent",
"type": "message"
}, {
"text": "Greg closed the chat.",
"date": "Wed, 12/04/13 07:23:31 pm",
"timestamp": 1386181411,
"type": "event",
"user_type": "visitor"
}],
"started_timestamp": 1386175667,
"ended_timestamp": 1386181411,
"ended": "Wed, 12/04/13 07:23:31 pm"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment