Get Category Names

Get a list category names


Function

  • getCategoryNames()

Parameters

  • username: String
    • Account login name.
  • password: String
    • Account password.
  • categoryIds: int[]
    • Array of category ids

Return

  • String[]:
    • Array of category names

Exception

  • Exception

Documentation

  • Retrieves a list category names for the specified category IDs.
  • Invalid category IDs will return a category name with an invalid name descriptor.
    • invalid category. id: xxxx

Examples

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

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

        String username = "XXX";
        String password = "XXX";
        List<Integer> categoryIds = new ArrayList<>();
        categoryIds.add(1234);
        categoryIds.add(2345);

        String[] names = ppt.getCategoryNames(username, 
                                password, 
                                categoryIds);
}
<?php
include 'puresend.php';

$p = new Puresend();

$getCategoryNamesData = new getCategoryNames();
$getCategoryNamesData->username = 'XXX';
$getCategoryNamesData->password = 'XXX';
$getCategoryNamesData->categoryIds = array(1234, 2345);

$response = $p->getCategoryNames($getCategoryNamesData);
var_dump($response);

?>