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);
    }