Get Contact

Get email/contact details by Contact ID.


Function

  • getContact()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • contactId: long
    • contact id details that to be retrieved.

Return

  • Contact:
    • Contact object containing details of the email and the field values.

Exception

  • Exception

Documentation

  • Retrieves email/contact details for the specified contact id.

Examples

public void getContactSample() throws java.lang.Exception {

        Puresend p = new Puresend();
        PuresendPortType ppt = p.getPuresendHttpsSoap12Endpoint();

        String username = "XXX";
        String password = "XXX";
        long contactId = 123456789L;

        Contact contact = ppt.getContact(username, 
                                password, 
                                contactId);
}
<?php
include 'puresend.php';

$p = new Puresend();

$getContactData = new getContact();
$getContactData->username = 'XXX';
$getContactData->password = 'XXX';
$getContactData->contactId = 123456789;

$response = $p->getContact($getContactData);
var_dump($response);

?>