Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetCampaignsByFolder Method

根據目錄獲取郵件活動

參數

參數

類型

描述

loginEmail

String

Spread賬號郵件地址.

APIKey

String

Spread賬號的登錄密碼或者 API Key API key可在賬號詳情中查看 (我的賬號=> API).

folderName

String

目錄名稱

返回結果

DataTable 一張包含以下columns的單表:campaign_name, campaign_subject, cdate_created, cdate_updated

例子

string loginEmail = "Spread@reasonables.com";

string APIKey = "Spread";

string folderName = 'FolderName1';

SpreadAPI. SpreadWebService MySpread = new SpreadAPI. SpreadWebService ();

DataTable result = MySpread.GetCampaignsByFolder(loginEmail, APIKey, folderName);

Dim loginEmail As String = "Spread@reasonables.com"

Dim APIKey As String = "Spread"

Dim folderName As String = 1

Dim MySpread As New SpreadAPI. SpreadWebService

Dim result As DataTable = MySpread.GetCampaignsByFolder(loginEmail, APIKey, folderName)

    /**
    * @name     getCampaignsByFolder
    * @function get campaigns in the folder
    * @return
    *  a DataTable      
    */
    public function getCampaignsByFolder($loginEmail,$apiKey,$pageNumber,$pageSize){
        $sendArr = array(
	        'loginEmail'        => $loginEmail,
	        'apiKey'	    => $apiKey,
	        'folderName'	    => $FolderName1,
        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $result = $Client -> GetCampaignsByFolder( $sendArr );
        if( empty( $result ) ){
	        return -1;
        }
        return $result;
    }

         
No sample.