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.