Start a job.
Start a job by Id.
Function
startJob()
Parameters
- username:
String
- Account login name.
- password:
String
- Account password.
- jobId:
Integer
- Job Id.
Return
int
:1
: success0
: failed
Exception
- Exception
Documentation
- Start a job from a draft job based on user privileges, use the function:
startJob()
Examples
public void startJobSample() {
try {
String username = "XXX";
String password = "XXX";
int jobId = 1234;
int result = port.startJob(username, password, jobId);
}
} catch (Exception e) {
System.out.println("An unexpected error has occurred." + e.getMessage());
}
}
<?php
include 'puresend.php';
$p = new Puresend();
$startJobData = new startJob();
$startJobData->username = 'XXX';
$startJobData->password = 'XXX';
$startJobData->jobId = 1234;
$response = $p->startJob($startJobData);
var_dump($response);
?>