by Bitty Horse • 4 weeks ago • PHP
This paste is a reply to Re: Re: Re: Hangout parser function by Ample Cassowary - go back
{
  "conversations": [
    {
      "conversation": {
        "conversation_id": {
          "id": "UgxxZGVC7yhKgVCKiKF4AaABAagBpP4X"
        },
        "conversation": {
          "id": {
            "id": "UgxxZGVC7yhKgVCKiKF4AaABAagBpP4X"
          },
          "type": "STICKY_ONE_TO_ONE",
          "self_conversation_state": {
            "self_read_state": {
              "participant_id": {
                "gaia_id": "107469890874656358407",
                "chat_id": "107469890874656358407"
              },
              "latest_read_timestamp": "0"
            },
            "status": "INVITED",
            "notification_level": "QUIET",
            "view": [
              "INBOX_VIEW"
            ],
            "inviter_id": {
              "gaia_id": "102315629486705104254",
              "chat_id": "102315629486705104254"
            },
            "invite_timestamp": "1518641050305000",
            "sort_timestamp": "1518641200701413",
            "invite_affinity": "HIGH",
            "delivery_medium_option": [
              {
                "delivery_medium": {
                  "medium_type": "BABEL_MEDIUM"
                },
                "current_default": true
              }
            ],
            "invitation_display_type": "CHAT"
          },
          "read_state": [
            {
              "participant_id": {
                "gaia_id": "107469890874656358407",
                "chat_id": "107469890874656358407"
              },
              "latest_read_timestamp": "0"
            },
            {
              "participant_id": {
                "gaia_id": "102315629486705104254",
                "chat_id": "102315629486705104254"
              },
              "latest_read_timestamp": "0"
            }
          ],
          "has_active_hangout": false,
          "otr_status": "ON_THE_RECORD",
          "otr_toggle": "ENABLED",
          "current_participant": [
            {
              "gaia_id": "107469890874656358407",
              "chat_id": "107469890874656358407"
            },
            {
              "gaia_id": "102315629486705104254",
              "chat_id": "102315629486705104254"
            }
          ],
          "participant_data": [
            {
              "id": {
                "gaia_id": "107469890874656358407",
                "chat_id": "107469890874656358407"
              },
              "fallback_name": "Janel dawson Dawson",
              "invitation_status": "PENDING_INVITATION",
              "participant_type": "GAIA",
              "new_invitation_status": "PENDING_INVITATION",
              "in_different_customer_as_requester": false
            },
            {
              "id": {
                "gaia_id": "102315629486705104254",
                "chat_id": "102315629486705104254"
              },
              "fallback_name": "Randy Walker",
              "invitation_status": "ACCEPTED_INVITATION",
              "participant_type": "GAIA",
              "new_invitation_status": "ACCEPTED_INVITATION",
              "in_different_customer_as_requester": false
            }
          ],
          "fork_on_external_invite": false,
          "network_type": [
            "BABEL"
          ],
          "force_history_state": "NO_FORCE",
          "group_link_sharing_status": "LINK_SHARING_OFF"
        }
      },
      "events": [
        {
          "conversation_id": {
            "id": "UgxxZGVC7yhKgVCKiKF4AaABAagBpP4X"
          },
          "sender_id": {
            "gaia_id": "102315629486705104254",
            "chat_id": "102315629486705104254"
          },
          "timestamp": "1518641200701413",
          "self_event_state": {
            "user_id": {
              "gaia_id": "107469890874656358407",
              "chat_id": "107469890874656358407"
            },
            "notification_level": "QUIET"
          },
          "chat_message": {
            "message_content": {
              "segment": [
                {
                  "type": "TEXT",
                  "text": "...."
                }
              ]
            }
          },
          "event_id": "8cej1s53zf_8cejKBztf5A",
          "advances_sort_timestamp": true,
          "event_otr": "ON_THE_RECORD",
          "delivery_medium": {
            "medium_type": "BABEL_MEDIUM"
          },
          "event_type": "REGULAR_CHAT_MESSAGE",
          "event_version": "1518641200701413"
        },
        {
          "conversation_id": {
            "id": "UgxxZGVC7yhKgVCKiKF4AaABAagBpP4X"
          },
          "sender_id": {
            "gaia_id": "102315629486705104254",
            "chat_id": "102315629486705104254"
          },
          "timestamp": "1518646528655029",
          "self_event_state": {
            "user_id": {
              "gaia_id": "107469890874656358407",
              "chat_id": "107469890874656358407"
            },
            "notification_level": "QUIET"
          },
          "hangout_event": {
            "event_type": "START_HANGOUT",
            "participant_id": [
              {
                "gaia_id": "102315629486705104254",
                "chat_id": "102315629486705104254"
              }
            ],
            "media_type": "AUDIO_VIDEO"
          },
          "event_id": "8cej1s53zf_8cetU_igcrZ",
          "advances_sort_timestamp": true,
          "event_otr": "ON_THE_RECORD",
          "delivery_medium": {
            "medium_type": "BABEL_MEDIUM"
          },
          "event_type": "HANGOUT_EVENT",
          "event_version": "1518646528655029"
        },
        {
          "conversation_id": {
            "id": "UgxxZGVC7yhKgVCKiKF4AaABAagBpP4X"
          },
          "sender_id": {
            "gaia_id": "102315629486705104254",
            "chat_id": "102315629486705104254"
          },
          "timestamp": "1518646560889446",
          "self_event_state": {
            "user_id": {
              "gaia_id": "107469890874656358407",
              "chat_id": "107469890874656358407"
            },
            "notification_level": "QUIET"
          },
          "hangout_event": {
            "event_type": "END_HANGOUT",
            "participant_id": [
              {
                "gaia_id": "102315629486705104254",
                "chat_id": "102315629486705104254"
              }
            ],
            "hangout_duration_secs": "32",
            "media_type": "AUDIO_VIDEO"
          },
          "event_id": "8cej1s53zf_8cetYWZAXps",
          "advances_sort_timestamp": true,
          "event_otr": "ON_THE_RECORD",
          "delivery_medium": {
            "medium_type": "BABEL_MEDIUM"
          },
          "event_type": "HANGOUT_EVENT",
          "event_version": "1518646560889446"
        }
      ]
    },
    {
      "conversation": {
        "conversation_id": {
          "id": "UgysT_UPQw5PkFgoPHx4AaABAagBloCQBQ"
        },
        "conversation": {
          "id": {
            "id": "UgysT_UPQw5PkFgoPHx4AaABAagBloCQBQ"
          },
          "type": "STICKY_ONE_TO_ONE",
          "self_conversation_state": {
            "self_read_state": {
              "participant_id": {
                "gaia_id": "107469890874656358407",
                "chat_id": "107469890874656358407"
              },
              "latest_read_timestamp": "1521793620318715"
            },
            "status": "ACTIVE",
            "notification_level": "RING",
            "view": [
              "INBOX_VIEW"
            ],
            "inviter_id": {
              "gaia_id": "107469890874656358407",
              "chat_id": "107469890874656358407"
            },
            "invite_timestamp": "1519939771570000",
            "sort_timestamp": "1519939777893110",
            "active_timestamp": "1519939771570000",
            "delivery_medium_option": [
              {
                "delivery_medium": {
                  "medium_type": "BABEL_MEDIUM"
                },
                "current_default": true
              }
            ],
            "is_guest": false
          },
          "read_state": [
            {
              "participant_id": {
                "gaia_id": "115144183778312797868",
                "chat_id": "115144183778312797868"
              },
              "latest_read_timestamp": "0"
            },
            {
              "participant_id": {
                "gaia_id": "107469890874656358407",
                "chat_id": "107469890874656358407"
              },
              "latest_read_timestamp": "1521793620318715"
            }
          ],
          "has_active_hangout": false,
          "otr_status": "ON_THE_RECORD",
          "otr_toggle": "ENABLED",
          "current_participant": [
            {
              "gaia_id": "115144183778312797868",
              "chat_id": "115144183778312797868"
            },
            {
              "gaia_id": "107469890874656358407",
              "chat_id": "107469890874656358407"
            }
          ],
          "participant_data": [
            {
              "id": {
                "gaia_id": "115144183778312797868",
                "chat_id": "115144183778312797868"
              },
              "invitation_status": "PENDING_INVITATION",
              "participant_type": "GAIA",
              "new_invitation_status": "PENDING_INVITATION",
              "in_different_customer_as_requester": false
            },
            {
              "id": {
                "gaia_id": "107469890874656358407",
                "chat_id": "107469890874656358407"
              },
              "fallback_name": "Janel Walker",
              "invitation_status": "ACCEPTED_INVITATION",
              "participant_type": "GAIA",
              "new_invitation_status": "ACCEPTED_INVITATION",
              "in_different_customer_as_requester": false
            }
          ],
          "fork_on_external_invite": false,
          "network_type": [
            "BABEL"
          ],
          "force_history_state": "NO_FORCE",
          "group_link_sharing_status": "LINK_SHARING_OFF"
        }
      },
      "events": [
        {
          "conversation_id": {
            "id": "UgysT_UPQw5PkFgoPHx4AaABAagBloCQBQ"
          },
          "sender_id": {
            "gaia_id": "107469890874656358407",
            "chat_id": "107469890874656358407"
          },
          "timestamp": "1519939777893110",
          "self_event_state": {
            "user_id": {
              "gaia_id": "107469890874656358407",
              "chat_id": "107469890874656358407"
            },
            "client_generated_id": "769633217562",
            "notification_level": "RING"
          },
          "chat_message": {
            "message_content": {
              "segment": [
                {
                  "type": "TEXT",
                  "text": "Let's chat on Hangouts!",
                  "formatting": {
                    "bold": false,
                    "italics": false,
                    "strikethrough": false,
                    "underline": false
                  }
                }
              ]
            }
          },
          "event_id": "8dGR99wrrj18dGR9vCywOj",
          "advances_sort_timestamp": true,
          "event_otr": "ON_THE_RECORD",
          "delivery_medium": {
            "medium_type": "BABEL_MEDIUM"
          },
          "event_type": "REGULAR_CHAT_MESSAGE",
          "event_version": "1519939777893110"
        }
      ]
    }
  ]
}