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.
For Contribution APIs see Contributions flow
Some of the main types are:
For details on how these types and related APIs are used, see see Subscriptions flows.
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.