Get Categories

Retrieves a list of categories by category type.


Function

  • getCategories()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • categoryType: int
    • Category Type.
      • 3 for regular messages
      • 4 for template messages
      • 5 for confirmation messages
      • 6 for landing page messages
      • 7 for jobs
      • 8 for lists
      • 9 for seed lists

Return

  • CategoryInfo[]:
    • array of CategoryInfo Objects

Exception

  • Exception

Documentation

  • Retrieves a list of categories by category type.

Examples

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

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

        String username = "XXX";
        String password = "XXX";

        int result = ppt.getCategories(username, 
                                password, 
                                1);
}
<?php
include 'puresend.php';

$p = new Puresend();

$getCategoriesData = new getCategories();
$getCategoriesData->username = 'XXX';
$getCategoriesData->password = 'XXX';
$getCategoriesData->categoryType = 1;

$response = $p->getCategories($getCategoriesData);
var_dump($response);

?>