SpreadWebServcie.UpdateCampaignFolder Method

更新邮件活动的目录

参数

参数

类型

描述

loginEmail

String

Spread账号邮件地址.

APIKey

String

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

campaignName

String

邮件活动名称

folderName

String

目录名称

返回结果

String

例子

string loginEmail = "Spread@reasonables.com";

string APIKey = "Spread";

string campaignName = "CampaignName1";

string folderName = "FolderName1";

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

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

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

Dim APIKey As String = "Spread"

Dim campaignName As String = "CampaignName1"

Dim folderName As String = "FolderName1"

Dim MySpread As New SpreadAPI. SpreadWebService

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

    /**
    * @name     UpdateCampaignFolder
    * @function Update Campaign Folder
    * @return
    * String: Update Campaign Folder Success/Fail/Error    
    */
    public function UpdateCampaignFolder($loginEmail,$apiKey,$campaignName,$folderName){
        $sendArr = array(
	        'loginEmail'        => $loginEmail,
	        'apiKey'	    => $apiKey,
	        'campaignName'	    => $CampaignName1,
                'folderName'	    => $FolderName1,
        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $result = $Client -> UpdateCampaignFolder( $sendArr );
        if( empty( $result ) ){
	        return -1;
        }
        return $result;
    }

         
No sample.