Transfocus POD Web Services

<back to all web services

GetMessagesRequest

To override the Content-type in your clients HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /jsv/reply/GetMessagesRequest HTTP/1.1 
Host: api.podapp.com.au 
Content-Type: text/jsv
Content-Length: length

{
	timestamp: 0001-01-01,
	authToken: 00000000000000000000000000000000
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	conversations: 
	[
		{
			id: 00000000000000000000000000000000,
			conversationID: 00000000000000000000000000000000,
			userID: 00000000000000000000000000000000
		}
	],
	messages: 
	[
		{
			id: 00000000000000000000000000000000,
			senderID: 00000000000000000000000000000000,
			conversationID: 00000000000000000000000000000000,
			timestamp: 0001-01-01,
			text: String,
			acknowledged: False,
			timestampAcknowledged: 0001-01-01,
			read: False,
			timestampRead: 0001-01-01
		}
	],
	timestamp: 0001-01-01,
	success: False,
	errorMessage: String,
	errorCode: 0
}