edutap.wallet_google.api.save_link#
- edutap.wallet_google.api.save_link(models: list[ClassModel | ObjectModel | Reference], *, origins: list[str] = []) str #
Creates a link to save a Google Wallet Object to the wallet on the device.
Besides the capability to save an object to the wallet, it is also able create classes on-the-fly.
More information about the construction of the save_link can be found here:
- Parameters:
models – List of ObjectModels or ClassModels to save. A resource can be an ObjectReference instance too.
origins – List of domains to approve for JWT saving functionality. The Google Wallet API button will not render when the origins field is not defined. You could potentially get an “Load denied by X-Frame-Options” or “Refused to display” messages in the browser console when the origins field is not defined.
- Returns:
Link with JWT to save the resources to the wallet.