Skip Navigation Links.
展开 最小化

SpreadWebServcie.GetCampaignsByFolder Method

Get Campaigns By Folder.

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

APIKey

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

folderName

String

The folder name

Return Value

DataTable a single table with the columns campaign_name,campaign_subject,cdate_created,cdate_updated

Example

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.