When a contact is removed by the player in-game, from his in-game phone, you need to send the information to iPear. You can remove a specific contact from the server with the websocket.
You need to emit an event with the following name and data:
Event name: contacts@remove
| Key | Type | Extra | Description |
|---|---|---|---|
custom_id | string | required | Unique identifier (custom_id) of the sender (1-64 characters) |
contact_uid | string | required | Unique identifier of the contact linked to this phone_number and custom_id (example: the column "id" in your database) (1-32 characters) |
Important
Response object must respect every type rule. If any structure isn't respected, your request will be rejected for "bad-request".
{
"custom_id": "1234",
"contact_uid": "8756"
}
Unfortunately, there is no response in this version.
Outgoing events
Powered by Doctave