Send Test Job to Proof Lists.

Send a test job to the specified proof list(s)


Function

  • sendTestJobToProofLists()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • jobId: int
    • The test Job ID.
  • proofListIds: int[]
    • id of proof list to send test job to. Ensure toEmails is set to null.

Return

  • int:
    • 1: success
    • 0: failed

Exception

  • Exception

Documentation

  • Send a test job to the specified proof list(s).

Examples

public void sendTestJobToProofListsSample() {

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

        String username = "XXX";
        String password = "XXX";

        int jobId = 1234;
        List<Integer> proofListIds = new ArrayList<>();
        proofListIds.add(123);
        proofListIds.add(234);

        int result = port.sendTestJobToProofLists(username, password, jobId, proofListIds);
}   

<?php

include 'puresend.php';

$p = new Puresend();

$sendTestJobToProofListsData = new sendTestJobToProofLists();
$sendTestJobToProofListsData->username = 'XXX';
$sendTestJobToProofListsData->password = 'XXX';
$sendTestJobToProofListsData->jobId = 1234;
$sendTestJobToProofListsData->proofListIds = 123;

$response = $p->sendTestJobToProofLists($sendTestJobToProofListsData);
var_dump($response);

?>