Skip Navigation Links.
展开 最小化

SpreadWebServcie.NameExists Method

The following examples demonstrate how to validate name exists.

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

accountName

String

The name is validated.

Return Value

True if exist. Otherwise, false.

Example

string loginEmail = "Spread@reasonables.com";

string APIKey = "Spread";

string accountName ="testAccount";

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

bool  result = MySpread.NameExists (loginEmail, APIKey,accountName );

Dim logingName As String = Spread@reasonables.com

Dim APIKey As String = "spread"

Dim accountName As String = "testAccount"

Dim MySpread As New SpreadWS.SpreadWebService()

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

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