Skip Navigation Links.
展开 最小化

SpreadWebServcie.UnsubscribeEmailInContactList Method

对名单取消订阅。
删除/移除单个联系人,针对联系人名单。
不会更新联系人状态,可在其他名单内正常使用。

参数

参数

类型

描述

loginEmail

String

Spread账号的邮箱地址.

APIKey

String

Spread账号的密码或者 API Key which you can retrieve from your Spread account (My account=> Settings).

subscriberEmail

String

取消订阅的郵箱地址.

contactListName

String

联系人名单名称。

返回结果

Bool 如果成功,返回true。

例子

string loginEmail = "Spread@reasonables.com";

string APIKey = "TEST0000-TEST-0000-TEST-0000TEST0000";

string subscriberEmail = "Spread@reasonables.com";

string contactListName = "NoClone VIP";

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

bool result = MySpread.UnsubscribeEmailInAccount(loginEmail,APIKey,subscriberEmail,contactListName);

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

Dim APIKey As String = "TEST0000-TEST-0000-TEST-0000TEST0000"

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

Dim contactListName As String = "NoClone VIP"

Dim MySpread As New SpreadAPI.SpreadWebService

Dim result As Boolean = MySpread.UnsubscribeEmailInContactList(loginEmail,APIKey,subscriberEmail,contactListName)

    /**
    * @name     UnsubscribeEmailInContactList
    * @function unsubscribe email in contactList
    * @param
    *  subscriberEmail: The email of subscriber.
    *  contactListName: The name of contactList.
    * @return
    *          if success return true else return false.
    */
    public function UnsubscribeEmailInContactList($loginEmail,$APIKey,$subscriberEmail,$contactListName){
        $array = array(
	        'loginEmail'        => $loginEmail,
	        'APIKey'	    => $APIKey,
	        'subscriberEmail'  => $subscriberEmail
    	        'contactListName'  => $contactListName

        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        return $Client -> UnsubscribeEmailInContactList( $array );
    }

         
No sample.

参见