Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.58 KB

core-apis.md

File metadata and controls

50 lines (31 loc) · 1.58 KB

SwG Core APIs

Subscriptions API

Subscriptions service is the main service that provides access to all SwG APIs.

See Include SwG client on a site on how to load and get access to this service.

For key uses of these APIs see Subscriptions flows.

For SwG buttons see SwG buttons.

Contributions API

For Contribution APIs see Contributions flow

Types used within the Subscriptions API

Some of the main types are:

For details on how these types and related APIs are used, see see Subscriptions flows.

Clear and reset

If the parent application believes that entitlements have changed subscriptions.reset() can be called to refetch entitlements.

Calling subscriptions.clear() will clear the SwG state, including caches.