Notification

In the Ozeki Chat Client, the Notification API request is employed to send personalized alerts or updates to specific users, requiring their unique identification for targeted delivery. This identification, encapsulated in the userid parameter, is generated by computing the MD5 checksum of the user's email address, ensuring privacy and security in the notification process. For example, by applying the MD5 hash function to "alice@ozeki.hu," the resulting userid "aa68d2204cb2bb85f2de3b9aad0d86d7" uniquely identifies Alice for precise notification targeting within the chat client.

Notification request

Method: POST
URL: ?srv=chatserver&api=chatnotification
Request headers: Content-Type: application/json
Ozeki-Station: 801c91e6466a1ab34945d73ae4f762c6
POST data:
{
  "action": "download",
  "clientversioncode": 3,
  "timestamp": "2024-03-08 14:12:51"
}

Notification response

Response headers Content-Type: application/json
Response data:
{
  "status": "OK",
  "errormessage": "",
  "friendavailabilitesof": [],
  "conversationchangedof": [
    "8ca16186c36a4e0a1ef2096e6c60b613"
  ],
  "conversationlistchangedof": []
}

Request parameters

userid: This parameter contains the user id of the user. This field can be calculated by taking the md5 checksum of the user's e-mail address. For example: md5("alice@ozeki.hu") = "aa68d2204cb2bb85f2de3b9aad0d86d7";

timestamp: yyyy-MM-dd hh:mm:ss format, in UTC timezone, it's the client's responsibility to convert it into the local timezone.

More information