Instant messages commands

Instant messages commands

The old messages system. Replaced by Messaging system.

SendMessage

Send a message to Microbizz.

Input

message

string

The message text

remoteid

number

The ID of a Microbizz user who should receive the message

confirmation

boolean

If the message requires confirmation from the receiver

replytoid

number

The ID of a message that this is a reply to

Output

id

number

The ID of the newly created message

If replytoid is set then remoteid is ignored, as the receiver is implied from the original message.

ConfirmMessage

Confirm a message.

Input

messageid

number

The ID of the message

Output

None

-

-

GetMessagesByLastChange

Get all messages for the current user, and possibly mark some messages as read

Input

changedate

date

-

changetime

time

-

pushtoken

string

The push token to use; this may also be specified in the main envelope for the commands

read

collection[number]

List of message IDs to be marked as read

unread

collection[number]

List of message IDs to be marked as not read

Output

messages

collection [ message ]

The messages

confirmed

collection[number]

The message IDs of the messages confirmed since last GetMessagesByLastChange