================ Buddy Management ================ Buddy general interaction ------------------------- Every time a client send a command to a buddy the command has to be inside an action tag. Open gate example: .. code-block:: xml cmd_open_gate chat_text // if a Json is required by the buddy put the right Json inside this tag Buddy operation status message ------------------------------ **Message format:** +---------------------------+-------------+----------------------------+ | **Tag** | **Type** | **Description** | +===========================+=============+============================+ | x:action | text | One of the allowed types | +---------------------------+-------------+----------------------------+ | x:payload | json object | Represents message content | +---------------------------+-------------+----------------------------+ | **payload**:status | int | status code | +---------------------------+-------------+----------------------------+ | **payload**:response | json object | | +---------------------------+-------------+----------------------------+ | **response**:errorCode | String | error code | +---------------------------+-------------+----------------------------+ | **response**:errorMessage | String | buddy message | +---------------------------+-------------+----------------------------+ **Example:** .. code-block:: xml operation_status { "status": -1, "response": [ { "errorCode": "xmpp_service_0", "errorMessage": "Unaccepted version of client" }] }