Get List IDs

Get All the List ID by user's account.


Function

  • getLists()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • listType: int
    • [OPTIONAL] list type.
      • 1 for regular lists
      • 2 for database suppression sists
      • 3 for file-based suppression list
      • 4 for file-based domain suppression list
      • 5 for file-based username suppression list
      • 7 for file-based MD5 suppression list
      • 8 for seed list

Return

  • int[]:
    • list id corresponding to the list name

Exception

  • Exception

Documentation

  • Get All the List ID by user's account.

Examples

public void getListIdSample() throws java.lang.Exception {

        Puresend p = new Puresend();
        PuresendPortType ppt = p.getPuresendHttpsSoap12Endpoint();

        String username = "XXX";
        String password = "XXX";
        String listName = "A List Name";

        int listId = ppt.getListId(username, password, listName);

        System.out.println(listId);
}
<?php
include 'puresend.php';

$p = new Puresend();

$getListIdData = new getListId();
$getListIdData->username = 'XXX';
$getListIdData->password = 'XXX';
$getListIdData->listname = "A List Name";

$response = $p->getListId($getListIdData);
var_dump($response);

?>