Skip Navigation Links.
展开 最小化

SpreadWebServcie.UpdateCampaignFolder Method

Update folder of campaign.

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).

campaignName

String

The campaign name

folderName

String

The campaign's folder name

Return Value

String Update Campaign Folder Success/Fail/Error

Example

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.