Skip Navigation Links.
展开 最小化

SpreadWebServcie.EmailExists Method

下面的例子展示了如何去驗證該郵件地址是否在Spread中被注冊.

參數

參數

類型

描述

loginEmail

String

Spread賬號的郵箱.

APIKey

String

Spread賬號的密碼或者API Key.

accountEmail

String

被驗證的郵箱地址

返回結果

True 如果存在,否則false.

例子

string loginEmail = "Spread@reasonables.com";

string APIKey = "Spread";

string accountEmail ="testAccount";

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

bool  result = MySpread.EmailExists (loginEmail, APIKey,accountEmail );

Dim logingEmail As String = Spread@reasonables.com

Dim APIKey As String = "spread"

Dim accountEmail As String = "testAccount"

Dim MySpread As New SpreadWS.SpreadWebService()

Dim result = MySpread.EmailExists(logingName, APIKey, accountName)

  /**
    * @name     EmailExists
    * @function Validate Email exists(This method is only for reseller.)
    * @param
    *  loginEmail     The login email of your Spread account.
    *  APIKey 	      Spread account API Key.
    *  accountEmail    New account email.
    *  @return
    *  		true if exists.Otherwise,false.
    */
    public function EmailExists($loginEmail,$APIKey,$accountEmail){
        $paraArray = array(
	            'loginEmail' 	=> $loginEmail,
	            'APIKey'     	=> $APIKey,
		    'accountEmail'     	=> $accountEmail
        );
        $Client = new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        Return $Client -> EmailExists( $paraArray );
    }
         
No sample.