Skip Navigation Links.
展开 最小化

SpreadWebServcie.UnsubscribeEmailInContactList Method

Unsubscribe email in subscription(contact list).
Delete/Remove one subscriber from your subscription(contact list).
The subscriber status will not be updated. This subscriber works fine in other subscription(contact list).

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

subscriberEmail

String

The email of subscriber.

contactListName

String

The name of contactlist.

Return Value

Bool return true if success.

Example

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.

See Also