public function createAccount(Account $account, $client_id = null, $client_secret = null)
    {
        $post = $account->toCreateParams();

        if ($client_id) {
            $post += array(
                'client_id' => $client_id,
                'client_secret' => $client_secret
            );
        }

        $response = $this->rest->post(
            static::ACCOUNT_CREATE_PATH,
            $post
        );

        $this->checkResponse($response);

        return $account->fromResponse($response);
    }
public function createAccount(Account $account, $client_id = null, $client_secret = null)
    {
        $post = $account->toCreateParams();

        if ($client_id) {
            $post += array(
                'client_id' => $client_id,
                'client_secret' => $client_secret
            );
        }

        $response = $this->rest->post(
            static::ACCOUNT_CREATE_PATH,
            $post
        );

        $this->checkResponse($response);

        return $account->fromResponse($response);
    }
public function createAccount ( Account $ account , $ client_id = null , $ client_secret = null ) { $ post = $ account -> toCreateParams ( ) ; if ( $ client_id ) { $ post += array ( 'client_id' => $ client_id , 'client_secret' => $ client_secret ) ; } $ response = $ this -> rest -> post ( static :: ACCOUNT_CREATE_PATH , $ post ) ; $ this -> checkResponse ( $ response ) ; return $ account -> fromResponse ( $ response ) ; }
Creates a new HelloSign account

If client_id & client_secret null: The user will still need to validate
their email address to complete the creation process.

Else: Creates a new HelloSign account and provides OAuth app credentials
to generate an OAuth token automatically with the user Account response.

@param  Account $account
@param  string $client_id (optional)
@param  string $client_secret (optional)
@return Account
@throws BaseException
Creates a new HelloSign account