Pause a Job.

Pause a Job by Id.


Function

  • pauseJob()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • jobId: Integer
    • Job Id.

Return

  • int:
    • 1: success
    • 0: failed

Exception

  • Exception

Documentation

  • Pause a job if:
    • the job has not failed previously,
    • the job is not a draft job and has not finished.

Examples

public void pauseJobSample() {

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

        int jobId = 1234;

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

<?php
include 'puresend.php';

$p = new Puresend();

$pauseJobData = new pauseJob();
$pauseJobData->username = 'XXX';
$pauseJobData->password = 'XXX';
$pauseJobData->jobId = 1234;

$response = $p->pauseJob($pauseJobData);
var_dump($response);
?>