edutap.wallet_google.api.create#
- edutap.wallet_google.api.create(name: str, data: dict[str, Any] | GoogleWalletModel) GoogleWalletModel #
Creates a Google Wallet items. C in CRUD.
- Parameters:
name – Registered name of the model to use
data – Data to pass to the Google RESTful API. Either a simple python data structure using built-ins, or a Pydantic model instance matching the registered name’s model.
- Raises:
Exception – When the response status code is not 200.
- Returns:
The created model based on the data returned by the Restful API.