Skip Navigation Links.
展开 最小化

SpreadWebServcie.ChangePublishStatus Method

Publish or not publish Newsletters.

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

password

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

campaign_Id

String

The ID of email campaign.

isPublish

Boolean

Publish or not publish Newsletters.

Return Value

Boolean represent the result of update status ."true" means success, others mean fail.

Example

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.