Skip Navigation Links.
展开 最小化

SpreadWebServcie.UpdateSubscriberStatus Method

更新联系人状态

参数

参数

类型

描述

loginEmail

String

Spread账号邮件地址.

password

String

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

subscriberEmail

String

联系人邮箱

subscriberStatus

SubscriberStatus

联系人的状态

返回结果

String - Success/Fail/Error.

例子

string loginEmail = "Spread@reasonables.com";

string loginPassword = "Spread";

int subscriberEmail = "alan@reasonables.com";

campaignStatus subscriberStatus = SubscriberStatus.Active;

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

string result = MySpread.UpdateSubscriberStatus(loginEmail, loginPassword, subscriberEmail, subscriebrStatus);

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

Dim loginPassword As String = "Spread"

Dim subscriberEmail As String = 1

Dim campaignStatus As String = SubscriberStatus.Active

Dim MySpread As New SpreadAPI. SpreadWebService

Dim result As String = MySpread.UpdateSubscriberStatus(loginEmail, loginPassword, subscriberEmail, subscriberStatus)

    /**
    * @name     updateSubscriberStatus
    * @function update subscriber status
    * @param
    *  subscriberEmail	the subscriber email you want to update
    * @return
    *  error message       failed.
    *  1        success.
    */
    public function updateSubscriberStatus($loginEmail,$password,$subscriberEmail,$subscriberStatus ){
        $sendArr = array(
	        'loginEmail'        => $loginEmail,
	        'password'	    => $password,
	        'subscriberEmail'       => $csubscriberEmail,
	        'subscriberStatus'       => $subscriberStatus
        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $flag = $Client -> UpdateSubscriberStatus( $sendArr );
        if( empty( $flag ) ){
	        return -1;
        }
        return 1;
    }

         
No sample.