Delete a job.
Delete the Job by ID.
Function
deleteJob()
Parameters
- username:
String
- Account login name.
- password:
String
- Account password.
- jobId:
Integer
- The Job ID.
Return
int
:1
: Successfully deleted this Job0
: Failed deleted this Job
Exception
- java.lang.Exception
Documentation
- To delete a Job via the Web Service, use the function:
deleteJob()
Examples
public void deleteJobSample() {
String username = "XXX";
String password = "XXX";
int jobId = 1234;
int result = port.deleteJob(username, password, jobId);
if (result == 1) {
System.out.println("success");
}
}
<?php
include 'puresend.php';
$p = new Puresend();
$deleteJobData = new deleteJob();
$deleteJobData->username = 'XXX';
$deleteJobData->password = 'XXX';
$deleteJobData->jobId = 1234;
$response = $p->deleteJob($deleteJobData);
var_dump($response);
?>