Appwrite C++ SDK
Auto-generated API documentation for the Appwrite C++ SDK
Loading...
Searching...
No Matches
Account Class Reference

Handles user account-related operations like creation and session management. More...

#include <Account.hpp>

Collaboration diagram for Account:

Public Member Functions

 Account (const std::string &projectId)
 Constructs an Account object with a specified project ID.
 
bool createAccount (const std::string &email, const std::string &password, const std::string &userId, const std::string &name)
 Creates a new user account.
 
std::string createSession (const std::string &email, const std::string &password)
 Creates a new session for a user.
 

Detailed Description

Handles user account-related operations like creation and session management.

Definition at line 18 of file Account.hpp.

Constructor & Destructor Documentation

◆ Account()

Account::Account ( const std::string &  projectId)
explicit

Constructs an Account object with a specified project ID.

Parameters
projectIdThe Appwrite project ID.

Member Function Documentation

◆ createAccount()

bool Account::createAccount ( const std::string &  email,
const std::string &  password,
const std::string &  userId,
const std::string &  name 
)

Creates a new user account.

Parameters
emailUser's email address.
passwordUser's password.
userIdUnique ID for the user.
nameUser's display name.
Returns
True if account creation is successful, false otherwise.

◆ createSession()

std::string Account::createSession ( const std::string &  email,
const std::string &  password 
)

Creates a new session for a user.

Parameters
emailUser's email address.
passwordUser's password.
Returns
Session token as a string.

The documentation for this class was generated from the following file: