The GetLandingPages service allows you to list of all landing pages within Flexmail.
SOAP Action: GetLandingPages
SOAP Return Object: GetLandingPagesResp
The following table describes the parameters used for calling the GetLandingPages service.
Parameter | Mandatory | Type | Description |
---|---|---|---|
header | Y | APIRequestHeader | Header for authentication |
The following table describes the parameters returned from the GetLandingPages service.
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 |
0 | No error |
---|---|
220 | Authentication error, see header object for detailed information |
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; } ?>