Get List Infos
Get Multiple List information by List type.
Function
getListInfos()
Parameters
- username:
String
- Account login name.
- password:
String
- Account password.
- listType:
int
[OPTIONAL]
list type.1
for regular lists2
for database suppression sists3
for file-based suppression list4
for file-based domain suppression list5
for file-based username suppression list7
for file-based MD5 suppression list8
for seed list
Return
ListInfo[]
:- ListInfo array of objects containing the list information.
Exception
- Exception
Documentation
- Retrieves all the lists including the list information for the user’s account.
Examples
public void getListInfosSample() throws java.lang.Exception {
Puresend p = new Puresend();
PuresendPortType ppt = p.getPuresendHttpsSoap12Endpoint();
String username = "XXX";
String password = "XXX";
ListInfo[] listInfos = ppt.getListInfos(username, password, 1);
for (ListInfo listInfo : listInfos) {
System.out.println(listInfo.getId());
}
}
<?php
include 'puresend.php';
$p = new Puresend();
$getListInfosData = new getListInfos();
$getListInfosData->username = 'XXX';
$getListInfosData->password = 'XXX';
$getListInfosData->listType = 1;
$response = $p->getListInfos($getListInfosData);
var_dump($response);
?>