Service: GetLandingPages

The GetLandingPages service allows you to list of all landing pages within Flexmail.

Service Details

SOAP Action: GetLandingPages
SOAP Return Object: GetLandingPagesResp

Input

The following table describes the parameters used for calling the GetLandingPages service.

Table: instance of GetLandingPagesReq

Parameter Mandatory Type Description
header Y APIRequestHeader Header for authentication

Output

The following table describes the parameters returned from the GetLandingPages service.

Table: instance of GetLandingPagesResp

Parameter Mandatory Type Description
header / APIResponseHeader Header containing authentication information
errorCode / Integer Numerical value of the error
errorMessage / String Short literal description of the error
landingPageTypeItems / Array of LandingPageType Array of all landing pages

Table: response codes of GetLandingPagesResp.

0 No error
220 Authentication error, see header object for detailed information

Example

This example shows you the deletion of a category with id 1234.

<?php
$header->userId = USER_ID;
$header->userToken = USER_TOKEN;

$getLandingPagesReq->header = $header;

$getLandingPagesResp = $SoapClient->__soapCall("GetLandingPages", array($getLandingPagesReq));

if ($getLandingPagesResp->errorCode == 0) {
	foreach ($getLandingPagesResp->landingPageTypeItems as $landingPageType) {
		echo $landingPageType->landingPageId . " - " . $landingPageType->landingPageName
	}
} else {
	echo "Get landing pages failed: " . $getLandingPagesResp->errorMessage;
}
?>