Utworzone nowe wiadomości w kliencie pocztowym
Endpointy obsługujące żądanie:
https://api.5ways.com - EkspertUprawnienia:
GET /rest/mail_received_mysql_message
Zwraca listę pobranych wiadomości e-mail
// HTTP/1.1 200 OK
{
"MailReceivedMysqlMessage": {
"id": "1",
"mail_server_id": "2",
"user_id": "50",
"client_id": "5",
"customer_id": "3",
"mail_thread_id": "45",
"timestamp": "1700000000",
"mail_address": "example@example.com",
"mail_name": "John Doe",
"mail_subject": "Example Subject",
"mail_body": "This is an example email body with detailed content.",
"has_attachments": "1",
"priority": "1",
"tags": "",
"modified": "2024-12-11 15:00:00",
"created": "2024-12-10 14:25:00",
"msg_unique_identifier": "<unique-msg-id-123>",
"in_reply_to_msg_uid": "<previous-msg-id-122>",
"x_gm_thrid": "gm-thread-id-456",
"reference": ["<unique-msg-id-122>", "<unique-msg-id-123>"]
}
}
DELETE /rest/mail_received_mysql_message/{id}
Usuwa wiadomość email.
HTTP/1.1 200 OK
{
"status": "OK"
}
Obsługiwane statusy:
QUEUE_STATUS_NEW = 0
QUEUE_STATUS_PROCESSING = 1
QUEUE_STATUS_DONE = 2
QUEUE_STATUS_ERROR = 3
QUEUE_STATUS_DRAFT = 4