Click or drag to resize

MessageControllerGetMailBoxSentMessages Method

Get the sent messages for the specified mailbox. The logged in user must have acces to the mailbox.

Namespace:  MedTunnelMsg.Controllers
Assembly:  MedTunnelMsg (in MedTunnelMsg.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public Result GetMailBoxSentMessages(
	int MailBoxId,
	bool OnlyMessagesWithAttachments = false,
	int LastMessageId = 0,
	int StartRow = 0,
	int RowCount = 50,
	bool UnReadOnly = false
)

Parameters

MailBoxId
Type: SystemInt32
Internal mailbox Id
OnlyMessagesWithAttachments (Optional)
Type: SystemBoolean
Only retrieve messages with attachment(s). Defaults to false
LastMessageId (Optional)
Type: SystemInt32
The last message Id retrieved. Only messages received after this message will be retrieved. Defaults to 0
StartRow (Optional)
Type: SystemInt32
Starting row number of the message set to retrieve. Defaults to 0. Used for paging
RowCount (Optional)
Type: SystemInt32
Maximum number of rows to retrieve. Defaults to 50. Used for paging
UnReadOnly (Optional)
Type: SystemBoolean
Get unread messages only? Defaults to false

Return Value

Type: Result
Result.Data contains a list of Message objects. Result.ReturnCode values:
  • 0 = An unknown error occurred
  • 1 = Success
Examples
PHP/Curl
curl -X GET -k 
        -H "Authorization:PutAuthorizationTokenHere" 
        https://server.medtunnel.com/medtunnelmsg/api/Message/GetMailBoxSentMessages?MailBoxId=623&OnlyMessagesWithAttachments=false&LastMessageId=27812&StartRow=3&RowCount=25&UnReadOnly=false
See Also