Inserts the resources in the JWT.
HTTP request
POST https://walletobjects.googleapis.com/walletobjects/v1/jwt
The URL uses gRPC Transcoding syntax.
Request body
The request body contains an instance of JwtResource
.
Response body
If successful, the response body contains data with the following structure:
JSON representation |
---|
{
"saveUri": string,
"resources": {
object ( |
Fields | |
---|---|
save |
A URI that, when opened, will allow the end user to save the object(s) identified in the JWT to their Google account. |
resources |
Data that corresponds to the ids of the provided classes and objects in the JWT. resources will only include the non-empty arrays (i.e. if the JWT only includes eventTicketObjects, then that is the only field that will be present in resources). |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/wallet_object.issuer
Resources
JSON representation |
---|
{ "eventTicketClasses": [ { object ( |
Fields | |
---|---|
event |
A list of event ticket classes. |
event |
A list of event ticket objects. |
flight |
A list of flight classes. |
flight |
A list of flight objects. |
gift |
A list of gift card classes. |
gift |
A list of gift card objects. |
loyalty |
A list of loyalty classes. |
loyalty |
A list of loyalty objects. |
offer |
A list of offer classes. |
offer |
A list of offer objects. |
transit |
A list of transit classes. |
transit |
A list of transit objects. |
generic |
A list of generic classes. |
generic |
A list of generic objects. |