Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetCampaignStatus Method

獲取郵件的活動狀態

public CampaignStatus getCampaignStatus (

string loginEmail,

string password,

int campaignID

)

Public function getCampaignStatus( _

loginEmail As String, _

password As String, _

campaignID As Integer, _

) As CampaignStatus

No sample for PHP.
No sample.

參數

參數

類型

描述

loginEmail

String

Spread賬號的郵件地址.

password

String

Spread賬號的密碼或API Key.

campaignID

Integer

郵件活動的ID.

返回結果

例子

string loginName = "spread@reasonables.com";

string loginPassword = "spread";

int myCampaignID = 123456;

CampaignStatus myCampaignStatus;

 

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

myCampaignStatus = MySpread.getCampaignStatus (loginName, loginPassword, myCampaignID);

Dim loginName As String = "spread@reasonables.com"

Dim loginPassword As String = "spread"

Dim myCampaignID As Integer = 123456

Dim myCampaignStatus As CampaignStatus

 

'Create a SpreadWebService object and use its method.

Dim MySpread As New SpreadWebService

 

myCampaignStatus = MySpread.getCampaignStatus(loginName, loginPassword, myCampaignID)

  /**
    * @name     getCampaignStatus
    * @function get the status of campaign
    * @param
    *  loginEmail Login Email of Spread.
    *  password Login Password of Spread.
    *  CampaignID   The id of campaign.
    * @return
    *  		status.
    */
    public function getCampaignStatus($loginEmail,$password,$campaignID){
        $paraArray = array(
	            'loginEmail' 	=> $loginEmail,
	            'password'     	=> $password,
		    'campaignID'        => $campaignID
        );
        $Client = new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $campaignstatus = $Client -> getCampaignStatus( $paraArray );
        return $campaignstatus ;
    }
         
No sample.