Find ContactIds

Retrieves a list of contact IDs by email address.


Function

  • findContactIds()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • email: String
    • email search string.
  • searchSubAccounts: boolean
    • whether to search sub accounts

Return

  • int[]:
    • array of contact IDs

Exception

  • Exception

Documentation

  • Retrieves a list of contact IDs by email address.
  • Option to include searching sub-accounts.

Examples

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

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

        String username = "XXX";
        String password = "XXX";
        String email = "sample@email.com";

        int[] contactIds = ppt.findContactIds(username, 
                                password, 
                                email,
                                false);
}
<?php
include 'puresend.php';

$p = new Puresend();

$findContactIdsData = new findContactIds();
$findContactIdsData->username = 'XXX';
$findContactIdsData->password = 'XXX';
$findContactIdsData->email = "sample@email.com";
$findContactIdsData->searchSubAccounts = false;

$response = $p->findContactIds($findContactIdsData);
var_dump($response);

?>