Skip Navigation Links.
展开 最小化

SpreadWebServcie.UnsubscribeEmailInAccount Method

Unsubscribe Email In Account (unsubscribe all of subscribers contains the email in your spread account)
The subscriber status will be updated to Unsubscribed.

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.

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";

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

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

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

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

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

Dim MySpread As New SpreadAPI.SpreadWebService

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

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

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

         
No sample.

See Also