Un-pause a Job.

Un-pause a Job by Id.


Function

  • unpauseJob()

Parameters

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

Return

  • int:
    • 1: success
    • 0: failed

Exception

  • Exception

Documentation

  • Start a paused job based on user privileges.

Examples

public void unpauseJobSample() {

        String username = "XXX";
        String password = "XXX";
        int jobId = 1234;

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

        if (result == 1) {
            System.out.println("success");
        }  
}   

<?php

include 'puresend.php';

$p = new Puresend();

$unpauseJobData = new unpauseJob();
$unpauseJobData->username = 'XXX';
$unpauseJobData->password = 'XXX';
$unpauseJobData->jobId = 1234;

$response = $p->unpauseJob($unpauseJob);
var_dump($response);

?>