Skip Navigation Links.
展开 最小化

SpreadWebServcie.CreateNewAccount Method

The following example demonstrates who to add new account without verificaton of emali address.

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

password

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

newAccountName 

String

New account name.

newAccountEmail

String

New account email.

newAccountPassword

String

New account password.

Return Value

True if succeed. Otherwise, False.

Example

string loginName = "spread@reasonables.com";

string loginPassword = "spread";

string newAccountName = "newAccount";

string newAccountEmail = "newSpreader@reasonables.com";

string newAccountPassword = "password";

 

SpreadWS.SpreadWebService mySpread = new SpreadWS.SpreadWebService();

bool result = mySpread.CreateNewAccount (loginName, loginPassword,newAccountName

     ,newAccountEmail ,newAccountPassword );

Visual Basic

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

Dim loginPassword As String = "Spread"

Dim newAccountName As String = "SpreaderName"

Dim newAccountEmail As String = "NewSpread@reasonables.com"

Dim newAccountPassword As String = "password"

 

Dim MySpread As New SpreadAPI.SpreadWebService()

Dim result As Boolean = MySpread.CreateNewAccount(loginName, loginPassword, _

newAccountName , newAccountEmail, newAccountPassword)

  /**
    * @name     CreateNewAccount
    * @function Create a new account.(This method is only for reseller.)
    * @param
    *  loginEmail         The login email of your Spread account.
    *  password 	      The login password of your Spread account.
    *  newAccountName     New account name.
    *  newAccountEmail    New account email.
    *  newAccountPassword New account password.
    *  @return
    *  		true if success.
    */
    public function CreateNewAccount($loginEmail,$password,$newAccountName,$newAccountEmail,$newAccountPassword){
        $paraArray = array(
	            'loginEmail' 	 	=> $loginEmail,
	            'password'     	 	=> $password,
		    'newAccountName'     	=> $newAccountName,
		    'newAccountEmail'     	=> $newAccountEmail,
		    'newAccountPassword'        => $newAccountPassword
        );
        $Client = new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        Return $Client -> CreateNewAccount( $paraArray );
    }

         
No sample.