Skip to content

Example Data

Israël Hallé edited this page Jul 28, 2020 · 9 revisions

buddylist Events

JSON

{
  "type": "buddylist",
  "eventData": {
    "groups": [
      {
        "name": "Conferences",
        "id": 1,
        "buddies": [
          {
            "aimId": "[email protected]",
            "displayId": "[email protected]",
            "friendly": "Test",
            "state": "online",
            "userType": "chat",
            "chatType": "channel"
          },
          {
            "aimId": "[email protected]",
            "displayId": "[email protected]",
            "friendly": "test",
            "state": "online",
            "userType": "chat",
            "chatType": "channel"
          },
          {
            "aimId": "[email protected]",
            "displayId": "[email protected]",
            "friendly": "foobar",
            "state": "online",
            "userType": "chat",
            "chatType": "channel"
          },
          {
            "aimId": "[email protected]",
            "displayId": "[email protected]",
            "friendly": "testtest",
            "state": "online",
            "userType": "chat",
            "chatType": "channel"
          },
          {
            "aimId": "[email protected]",
            "displayId": "[email protected]",
            "friendly": "testtesttest",
            "state": "online",
            "userType": "chat",
            "chatType": "channel"
          },
          {
            "aimId": "[email protected]",
            "displayId": "[email protected]",
            "friendly": "testtesttesttest",
            "state": "online",
            "userType": "chat",
            "chatType": "channel"
          },
          {
            "aimId": "[email protected]",
            "displayId": "[email protected]",
            "friendly": "testgroup",
            "state": "online",
            "userType": "chat",
            "chatType": "group"
          }
        ]
      },
      {
        "name": "Temporarily",
        "id": 2,
        "buddies": [
          {
            "aimId": "111111111",
            "displayId": "111111111",
            "friendly": "Test",
            "state": "offline",
            "userType": "icq",
            "autoAddition": "autoAdded",
            "lastseen": 1594235411
          },
          {
            "nick": "Ttest",
            "aimId": "111111111",
            "displayId": "111111111",
            "friendly": "test",
            "state": "online",
            "userType": "icq"
          }
        ]
      },
      {
        "name": "Phone Contacts",
        "id": 3,
        "buddies": [
          {
            "nick": "111111111",
            "aimId": "111111111",
            "displayId": "111111111",
            "friendly": "Test",
            "state": "offline",
            "userType": "icq",
            "lastseen": 111111111,
            "abContactName": "Test",
            "abPhoneNumber": "+11111111111",
            "abPhones": [
              {
                "number": "+11111111111",
                "rawNumber": "+11111111111",
                "type": "mobile"
              }
            ]
          },
          {
            "aimId": "111111111",
            "displayId": "111111111",
            "friendly": "Other test",
            "state": "offline",
            "userType": "icq",
            "lastseen": 111111111,
            "abContactName": "Other test",
            "abPhoneNumber": "+11111111111",
            "abPhones": [
              {
                "number": "+11111111111",
                "rawNumber": "+11111111111",
                "type": "mobile"
              }
            ]
          }
        ]
      }
    ]
  },
  "seqNum": 12215
}

histDlgState Events

Group Message

JSON

```python { 'sn': '[email protected]', 'starting': True, 'lastMsgId': '6852767962512184049', 'lastReadMention': '6852412789999532600', 'patchVersion': '6846323310301544448', 'unreadCnt': 359, 'yours': { 'lastRead': '6852412789999532600', 'lastReadMention': '6852412789999532600' }, 'mchatState': { 'membersVersion': '6852076404339774979', 'infoVersion': '6657247237447698844' }, 'messages': [{ 'msgId': '6852767962512184049', 'time': 1595534375, 'locale': 'en_US', 'text': 'Cash it out big💸💰\nAm loading all this bank\n📌Td bank \n📌Chase old only\n📌Wells Fargo old \n📌Citi bank old or new\n📌Ussa old \n📌Us bank\n📌Key bank\n\ni got fresh spamed, chase Log \nWells Fargo;;;;;;\nWith email access', 'mediaType': 'text', 'chat': { 'sender': '747806028', 'name': 'legit sellers and buyers only no rippers allow', 'live': True } }], 'olderMsgId': '6852767519980406576', 'persons': [{ 'sn': '[email protected]', 'friendly': 'legit sellers and buyers only no rippers allow' }, { 'sn': '747806028', 'friendly': 'PLUG' }] } ```

Direct Message

JSON

{
	"eventData": {
		"lastMsgId": "6751823558659277203",
		"messages": [{
			"locale": "en_US",
			"mediaType": "text",
			"msgId": "6751823558659277203",
			"outgoing": true,
			"text": "sfsdf",
			"time": 1572031425
		}],
		"olderMsgId": "6751823532889473048",
		"patchVersion": "1",
		"persons": [{
			"friendly": "Bob Jacky",
			"sn": "749379359"
		}],
		"sn": "749379359",
		"starting": true,
		"theirs": {
			"lastDelivered": "6751823558659277203",
			"lastRead": "6751823558659277203"
		},
		"unreadCnt": 0,
		"yours": {
			"lastRead": "6751823558659277203"
		}
	},
	"seqNum": 324320,
	"type": "histDlgState"
}

Images

An image alone will look like a regular message with only an URL https://files.icq.net/get/XXXXXX....

The message should then be followed by a galleryNotify event.

If a caption was attached, the message will contains a parts field:

JSON

{
  "type": "histDlgState",
  "eventData": {
    "sn": "[email protected]",
    "lastMsgId": "6854186351176568957",
    "lastReadMention": "6854185629335312800",
    "patchVersion": "1",
    "unreadCnt": 2,
    "yours": {
      "lastRead": "6854185629335312800",
      "lastReadMention": "6854185629335312800"
    },
    "mchatState": {
      "membersVersion": "6853129131701140926",
      "infoVersion": "6853128482963035260"
    },
    "messages": [
      {
        "msgId": "6854186351176568957",
        "time": 1595864619,
        "locale": "en_US",
        "text": "https://files.icq.net/get/0jm9G000U0Wx54DysJf9mH5f1ef62a1bc A Cat",
        "parts": [
          {
            "mediaType": "text",
            "text": "https://files.icq.net/get/0jm9G000U0Wx54DysJf9mH5f1ef62a1bc A Cat",
            "captionedContent": {
              "caption": "A Cat",
              "url": "https://files.icq.net/get/0jm9G000U0Wx54DysJf9mH5f1ef62a1bc"
            }
          }
        ],
        "mediaType": "text",
        "chat": {
          "sender": "755046603",
          "name": "GroupTest"
        }
      }
    ],
    "olderMsgId": "6854185728168577736",
    "persons": [
      {
        "sn": "[email protected]",
        "friendly": "GroupTest"
      },
      {
        "sn": "755046603",
        "friendly": "Other test"
      }
    ]
  },
  "seqNum": 7330
}

galleryNotify

JSON

{
  "type": "galleryNotify",
  "eventData": {
    "galleryState": {
      "galleryPatchVersion": "",
      "itemsCount": {
        "image": 2
      },
      "lastEntryId": {
        "mid": 6854189599322913805,
        "seq": 0
      }
    },
    "sn": "[email protected]",
    "tail": {
      "entries": [
        {
          "id": {
            "mid": 6854189599322913805,
            "seq": 0
          },
          "outgoing": false,
          "sender": "755046603",
          "time": 1595865376,
          "type": "image",
          "url": "https://files.icq.net/get/0jm9G000H0YnAgOn0yY0GZ5f1ef9201bc"
        },
        {
          "caption": "A Cat",
          "id": {
            "mid": 6854186351176568957,
            "seq": 0
          },
          "outgoing": false,
          "sender": "755046603",
          "time": 1595864619,
          "type": "image",
          "url": "https://files.icq.net/get/0jm9G000U0Wx54DysJf9mH5f1ef62a1bc"
        }
      ],
      "olderEntryId": {
        "mid": 6854186351176568957,
        "seq": 0
      }
    }
  },
  "seqNum": 7545
}
Clone this wiki locally