Get Multiple Contact
Get Multiple email/contact details by Contact IDs.
Function
getContacts()
Parameters
- username:
String
- Account login name.
- password:
String
- Account password.
- contactId:
long[]
- Array of contact id that to be retrieved.
Return
Contact[]
:- Array of Contact object containing details of the email and the field values.
Exception
- Exception
Documentation
- Retrieves email/contact detail Array for the specified contact id Array.
Examples
public void getContactsSample() throws java.lang.Exception {
Puresend p = new Puresend();
PuresendPortType ppt = p.getPuresendHttpsSoap12Endpoint();
String username = "XXX";
String password = "XXX";
long[] contactIds = new long[]{1234567890L, 1234567891L};
Contact[] contacts = ppt.getContacts(username,
password,
contactIds);
}
<?php
include 'puresend.php';
$p = new Puresend();
$getContactsData = new getContacts();
$getContactsData->username = 'XXX';
$getContactsData->password = 'XXX';
$getContactsData->contactIds = array(1234567890, 1234567891);
$response = $p->getContacts($getContactsData);
var_dump($response);
?>