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.