getAccountWith

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

accountId

The ID of the account to retrieve.

forTesting

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

accountId

The ID of the account to retrieve.

completionHandler