Get a job.

Obtain the Job information.


Function

  • getJob()

Parameters

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

Return

  • Job:
    • Job information object
    • Returns null if job does not exist.

Exception

  • Exception

Documentation

  • To get the Job information via the Web Service, use the function:getJob()

Examples

public void getJobSample() {
        String username = "XXX";
        String password = "XXX";

        int jobId = 1234;

        Job job = port.getJob(username, password, jobId);

        if(job != null) {
            System.out.println(job.getId());
        }
}   

<?php

include 'puresend.php';

$p = new Puresend();
$getJobData = new getJob();
$getJobData->username = 'XXX';
$getJobData->password = 'XXX';
$getJobData->jobId = '1234';

$jobInfo = $p->getJob($getJobData);

var_dump($jobInfo);

?>