getAccountWith

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

accountId

The ID of the account to retrieve.

forTesting

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

accountId

The ID of the account to retrieve.

completionHandler