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 messages4
for template messages5
for confirmation messages6
for landing page messages7
for jobs8
for lists9
for 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);
?>