Skip Navigation Links.
展开 最小化

SpreadWebServcie.getCampaignID Method

通过邮件名称获取对应ID。

public int getCampaignID (

string loginEmail,

string APIKey,

string CampaignName

)

Public function getCampaignID ( _

loginEmail As String, _

APIKey As String, _

CampaignName As String _

) As Integer

No sample for PHP.
No sample.

参数

参数

类型

描述

loginEmail

String

Spread账号的登录邮件地址.

APIKey

String

Spread账号的登录密码或者 API Key

CampaignName

String

邮件名称

返回结果

Integer 被创建活动的ID

例子

string loginName = "spread@reasonables.com";

string APIKey = "TEST0000-TEST-0000-TEST-0000TEST0000"; 

string CampaignName= "NoClone Promotion";

  

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

int campaignID = MySpread.getCampaignID (loginName, loginPassword, CampaignName);

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

Dim APIKey As String = "TEST0000-TEST-0000-TEST-0000TEST0000"

Dim CampaignName As String = "NoClone Promotion"

 

'Create a SpreadWebService object and use its method.

Dim MySpread As New SpreadWebService

 

Dim campaignID As Integer = MySpread.getCampaignID(loginName, APIKey , CampaignName)

  /**
    * @name     getCampaignID
    * @function get the id of Campaign
    * @param
    *  loginEmail Login Email of Spread.
    *  APIKey Spread account API Key.
    *  CampaignName   The name of campaign
    * @return
    *  		campaignID.
    */
    public function getCampaignID($loginEmail,$APIKey,$CampaignName){
        $paraArray = array(
	            'loginEmail' 	=> $loginEmail,
	            'APIKey'     	=> $APIKey,
		    'CampaignName'      => $CampaignName
        );
        $Client = new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $campaignID = $Client -> getCampaignID( $paraArray );
        return $campaignID ;
    }
         
No sample.