Get Message
Get Message Information by Message ID.
Function
getMessage()
Parameters
- username:
String
- Account login name.
- password:
String
- Account password.
- messageId:
int
- the message id to be retrieved.
Return
Message
:- Message detailed information object.
Exception
- PuresendException
Documentation
- Retrieves Message details for specified message id and includes rendered data.
Examples
public void createMessageFromURLSample() throws java.lang.Exception {
Puresend p = new Puresend();
PuresendPortType port = p.getPuresendHttpsSoap12Endpoint();
String username = "XXX";
String password = "XXX";
int messageId = 1;
Message message = port.getMessage(username, password, messageId);
}
<?php
include 'puresend.php';
$p = new Puresend();
$getMessageData = new getMessage();
$getMessageData->username = 'XXX';
$getMessageData->password = 'XXX';
$getMessageData->messageId = 1;
$response = $p->getMessage($getMessageData);
var_dump($response);
?>