Table Of Contents
URL: https://fleep.io/api/message/delete/CONV_ID
Send message to flow.
Input:
message_nr bigint - number of edited message
attachment_id text = None - delete only given attachment
from_message_nr bigint = None - used to return next batch of changes
Output:
- conversation/sync - if from_message_nr is provided then normal
- forward sync otherwise only conversation state and added message
URL: https://fleep.io/api/message/edit/CONV_ID
Send message to flow.
Input:
message text - message content
message_nr bigint - number of edited message
from_message_nr bigint = None - used to return next batch of changes
attachments list = None - list of AttachmentInfo objects to be added
Output:
- conversation/sync - if from_message_nr is provided then normal
- forward sync otherwise only conversation state and added message
URL: https://fleep.io/api/message/mark_read/CONV_ID
Set conversation read horizon for this account. Used when client determines that it has shown messages to user for long enough for them to get read or user wants to move read horizon up again.
Input:
message_nr bigint - client read horizon. Last message number that we have
shown to user. We update database and send
notifications to other connected clients if it is
larger than current value in database
from_message_nr bigint = None - used to return next batch of changes
Output:
- conversation/sync - if from_message_nr is provided then normal
- forward sync otherwise only conversation state and added message
URL: https://fleep.io/api/message/send/CONV_ID
Send message to flow.
Input:
message text = None - message content
from_message_nr bigint = None - used to return next batch of changes
attachments list = None - list of attachment urls
Output:
- conversation/sync - if from_message_nr is provided then normal
- forward sync otherwise only conversation state and added message
URL: https://fleep.io/api/message/store/CONV_ID
Store message changes whatever they are. Do changes in local cache and send only changed fields.
Input:
message_nr bigint = None - message nr for edits and deletes
subject text = None - message (email) subject
message text = None - message content
attachments text[] = None - list of attachment urls
Output:
- conversation/sync - if from_message_nr is provided then normal
- forward sync otherwise only conversation
- state and added message