Skip Navigation Links.
展开 最小化

SpreadWebServcie.DeleteCampaign Method

删除指定邮件活动。

参数

参数

类型

描述

loginEmail

String

Spread账号的邮箱地址

password

String

Spread账号的密码或者  API Key

campaignID

Integer

被删除的邮件活动ID

返回结果

True - 成功刪除。

False - 删除失败(这是一个无效的邮件活动ID或者该邮件活动无法被删除)。

例子

string loginEmail = "Spread@reasonables.com";

string loginPassword = "Spread";

int campaignID = 1;

SpreadAPI. SpreadWebService MySpread = new SpreadAPI. SpreadWebService ();

bool result = MySpread.DeleteCampaign(loginEmail, loginPassword, campaignID);

Dim loginEmail As String = "Spread@reasonables.com"

Dim loginPassword As String = "Spread"

Dim campaignID As Integer = 1

Dim MySpread As New SpreadAPI. SpreadWebService

Dim result As Boolean = MySpread.DeleteCampaign(loginEmail, loginPassword, campaignID)

    /**
    * @name     deleteCampaign
    * @function delete the campaign
    * @param
    *  campaignID	the campaign ID you want to delete as campaignID
    * @return
    *  error message       failed.
    *  1        success.
    */
    public function deleteCampaign($loginEmail,$password,$campaignID){
        $sendArr = array(
	        'loginEmail'        => $loginEmail,
	        'password'	    => $password,
	        'campaignID'       => $campaignID
        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $flag = $Client -> DeleteCampaign( $sendArr );
        if( empty( $flag ) ){
	        return 0;
        }
        return 1;
    }

         
No sample.