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.