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.
3for regular messages4for template messages5for confirmation messages6for landing page messages7for jobs8for lists9for seed lists
- Category Type.
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);
?>