Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetCampaignsByFolder Method

根据目录获取邮件活动

参数

参数

类型

描述

loginEmail

String

Spread账号邮件地址.

APIKey

String

Spread账号的登录密码或者 API Key 可在平台登陆后我的账号查看(我的账号=> 应用程序接口).

folderName

String

目录名称

返回结果

DataTable 一张包含以下Column的单表: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.