Skip to content

getOrCreateLineItem

getOrCreateLineItem(deps, lineItemsUrl, bearer, resourceLinkId, label, scoreMaximum): Promise<string>

Defined in: packages/core/src/ags.ts:292

Resolve a line item bound to a resource link, creating one if none exists. Used when the launch carried only the lineitems container. bearer needs both the lineitem scope (to list/create) — request it before calling.

AgsDeps

string

string

string

string

number

Promise<string>