Skip Navigation Links.
展开 最小化

SpreadWebServcie.ChangePublishStatus Method

更改發布狀態.

參數

參數

類型

描述

loginEmail

String

Spread賬號的登錄郵箱

password

String

Spread賬號的密碼或者API Key.

campaign_Id

String

郵箱活動的ID

isPublish

Boolean

是否發布.

返回結果

Boolean 表示更新的結果。"true"表示成功,其他表示失敗。

例子

string loginEmail = "Spread@reasonables.com";

string loginPassword = "Spread";

string campaign_Id = "123456";

bool isPublish = false;

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

bool result = MySpread.ChangePublishStatus(loginEmail, loginPassword, campaign_Id, isPublish);

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

Dim loginPassword As String = "Spread"

Dim campaign_Id As Integer = 123456

Dim isPublish As Boolean = False

Dim MySpread As New SpreadAPI.SpreadWebService

Dim result As Boolean = MySpread.ChangePublishStatus(loginEmail, loginPassword, campaign_Id, isPublish)

  /**
    * @name     ChangePublishStatus
    * @function get the status of campaign
    * @param
    *  LoginEmail Login Email of Spread.
    *  Password Login Password of Spread.
    *  Campaign_id   The id of campaign.
    *  isPublish Publish or not publish Newsletters (true or false)
    * @return
    *  		no return.
    */
    public function ChangePublishStatus($LoginEmail,$Password,$Campaign_id,$isPublish){
        $paraArray = array(
	            'LoginEmail' 	=> $LoginEmail,
	            'Password'     	=> $Password,
		    'Campaign_id'       => $Campaign_id
		    'isPublish'         => $isPublish
        );
        $Client = new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $sendResult = $Client -> ChangePublishStatus( $paraArray );
        return $sendResult;
    }
         
No sample.