Service: DeleteLandingPage

The DeleteLandingPage service allows you to delete existing landing pages within Flexmail.

Service Details

SOAP Action: DeleteLandingPage
SOAP Return Object: DeleteLandingPageResp

Input

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

Table: instance of DeleteLandingPageReq

Parameter Mandatory Type Description
header Y APIRequestHeader Header for authentication
landingPageType Y LandingPageType Landing page type

Output

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

Table: instance of DeleteLandingPageResp

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

Table: response codes of DeleteLandingPageResp.

0 No error
220 Authentication error, see header object for detailed information
221 Landing page id is mandatory
222 Invalid landing page id
223 Internal error

Example

This example shows you the deletion of a landing page with id 1046.

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

$deleteLadingPageReq->header = $header;
$deleteLadingPageReq->landingPageType->landingPageId = 1046; 

$deleteLadingPageResp = $SoapClient->__soapCall("DeleteLandingPage", array($deleteLadingPageReq));

if ($deleteLadingPageResp->errorCode == 0) {
	echo "Landing page deleted";
} else {
	echo "Landing page deletion failed: " . $deleteLadingPageResp->errorMessage;
}
?>