Find JobIds by Tags.
Find a list of job IDs by tags.
Function
searchJobByTag()
Parameters
- username:
String
- Account login name.
- password:
String
- Account password.
- tag:
String
- search tag.
- limit:
int
- constrains the number of return job ids.
- offset:
int
- skips the offset job ids.
Return
int[]
:- job IDs array
Exception
- java.lang.Exception
Documentation
- Retrieves a list of job IDs by tag.
Examples
public void searchJobByTagSample() {
String username = "XXX";
String password = "XXX";
String tag = "simpletag";
int[] jobIds = port.searchJobByTag(username, password, tag, 10, 0);
if (jobIds.length > 0) {
System.out.println("success");
}
}
<?php
include 'puresend.php';
$p = new Puresend();
$searchJobByTagData = new searchJobByTag();
$searchJobByTagData->username = 'XXX';
$searchJobByTagData->password = 'XXX';
$searchJobByTagData->tag = 'simpletag';
$searchJobByTagData->limit = 10;
$searchJobByTagData->offset = 0;
$response = $p->searchJobByTag($searchJobByTagData);
var_dump($response);
?>