BooyahDocs/docs/users/push-message.md
Fijxu 6905fea26d Users API folder update
The content of the Users API docs is still to be completed.
APIs that are from the same url were merged in the same file.
./docs/users.md not yet completed
2021-08-20 19:10:17 -04:00

1,005 B

Push Message - Private

Request Method: GET

  • /users/userID/push-messages?to_msg_id=&count=20 = Get the list of push messages in your account
    • Response Example: Response to long for be posted here, fetch it yourself

Request Method: GET

Push Message Sessions

  • /users/userID/push-messages-sessions = Get id of the notifications, and the unread count
    • Response Example:

      {
      "read_msg_id": "20randomnumbersherex", // Some random numbers with id
      "unread_msg_count": 0, // Unreaded notifications
      "latest_msg_id": "20randomnumbersherex" // Latest id of msg
      }
      

Request Method: PATCH

  • /users/userID/push-message-sessions = This request is invoked when the user reads the notifications.
    • Request Example:

      {
      "read_msg_id":"13667911151371411783"
      }
      
    • Response Example:

      {
      "read_msg_id": "13667911151371411783",
      "unread_msg_count": 0,
      "latest_msg_id": "13667911151371411783"
      }