Creates a suppression list.

Creates a suppression list with name, brand and file name information


Function

  • createSuppList()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • listName: String
    • name of the list.
  • brandName: String
    • any human readable name used for list purposes
  • type: int
    • suppression list type
  • fileName: String
    • if this was a file-based suppression list, filename should be presented

Return

  • int:
    • new list id

Exception

  • Exception

Documentation

  • Creates a suppression list with name, brand and file name information

Examples

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

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

        String username = "XXX";
        String password = "XXX";
        String listname = "sample list name";
        String brandName = "sample brand name";
        String fileName = "fileName";

        int listId = ppt.createSuppList(username, 
                                password,
                                listname,
                                brandName,
                                1,
                                fileName);
}
<?php
include 'puresend.php';

$p = new Puresend();

$createSuppListData = new createSuppList();
$createSuppListData->username = 'XXX';
$createSuppListData->password = 'XXX';
$createSuppListData->listname = "sample list name";
$createSuppListData->brandName = "sample brand name";
$createSuppListData->fileName = "fileName";
$createSuppListData->type = 1;

$response = $p->createSuppList($createSuppListData);
var_dump($response);

?>