Find JobIds.

Find a list of job IDs by name.


Function

  • findJobIds()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • nameFilter: String
    • search string
  • exactMatch: boolean
    • set exact match or not.

Return

  • int[]:
    • job IDs array

Exception

  • java.lang.Exception

Documentation

  • Retrieves a list of job IDs by name.
  • Supports wildcard name searches.

Examples

public void findJobIdsSample() {
        String username = "XXX";
        String password = "XXX";
        String nameFilter = "A Name";
        boolean exactMatch = false;

        int[] jobIds = port.findJobIds(username, password, nameFilter, exactMatch);

        if (jobIds.length > 0) {
            System.out.println("success");
        } 
}
<?php
include 'puresend.php';

$p = new Puresend();

$findJobIdsData = new findJobIds();
$findJobIdsData->username = 'XXX';
$findJobIdsData->password = 'XXX';
$findJobIdsData->nameFilter = 'A Name';
$findJobIdsData->exactMatch = false;

$response = $p->findJobIds($findJobIdsData);
var_dump($response);

?>