get Account With
suspend fun getAccountWith(accountId: String, forTesting: Boolean = false, auth: FrameAuthMode = FrameAuthMode.Publishable): 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.
auth
Credential for the request. Defaults to the publishable key. Checkout passes a chk_sess_ token here.
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.