Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetCampaignStatus Method

It gets the current status of an email campaign.

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.

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).

campaignID

Integer

The ID of the email campaign.

Return Value

Example

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.