Update PureTest Job.
Update a PureTest(A/B testing) job.
Function
updatePureTestJob()
Parameters
- username:
String
- Account login name.
- password:
String
- Account password.
- puretestJobInfo:
PuretestJob
- PuretestJob object.
Return
int
:1
: success0
: failed
Exception
- Exception
Documentation
- Update a newly created Pureest(A/B testing) job.
- Can update the job as long as it is in the
draft status
. - Cannot update the job once it has started.
- Puretest Job data that can be updated using the Job object is as follows:
- list ids,
- suppression ids,
- cluster names,
- rule set,
- message id,
- friendly from,
- from,
- subject,
- scheduled date.
Examples
public void updatePureTestJobSample() {
String username = "XXX";
String password = "XXX";
PuretestJob puretestJobInfo = new PuretestJob();
puretestJobInfo.setId(1234);
puretestJobInfo.setMessageId(12345);
int result = port.updatePuretestJob(username, password, puretestJobInfo);
}
<?php
include 'puresend.php';
$p = new Puresend();
$updatePuretestJobData = new updatePuretestJob();
$updatePuretestJobData->username = 'XXX';
$updatePuretestJobData->password = 'XXX';
$puretestJobData = new PuretestJob();
$puretestJobData->id = 1234;
$puretestJobData->messageId = 12345;
$updatePuretestJobData->puretestJobInfo = $puretestJobData;
$response = $p->updatePuretestJob($updatePuretestJob);
var_dump($response);
?>