get Account With
suspend fun getAccountWith(accountId: String, forTesting: Boolean = false): Pair<AccountObjects.Account?, NetworkingError?>
Retrieves a single account by ID and emits a Sift login event on success.
Return
A pair of the AccountObjects.Account and any NetworkingError.
Parameters
account Id
The ID of the account to retrieve.
for Testing
When true, suppresses the Sift login event.
fun getAccountWith(accountId: String, completionHandler: (AccountObjects.Account?, NetworkingError?) -> Unit)
Retrieves a single account by ID and emits a Sift login event on success.
Parameters
account Id
The ID of the account to retrieve.
completion Handler
Called with the AccountObjects.Account or a NetworkingError.