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 | |
---|---|
saveUri |
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 | |
---|---|
eventTicketClasses[] |
A list of event ticket classes. |
eventTicketObjects[] |
A list of event ticket objects. |
flightClasses[] |
A list of flight classes. |
flightObjects[] |
A list of flight objects. |
giftCardClasses[] |
A list of gift card classes. |
giftCardObjects[] |
A list of gift card objects. |
loyaltyClasses[] |
A list of loyalty classes. |
loyaltyObjects[] |
A list of loyalty objects. |
offerClasses[] |
A list of offer classes. |
offerObjects[] |
A list of offer objects. |
transitClasses[] |
A list of transit classes. |
transitObjects[] |
A list of transit objects. |
genericClasses[] |
A list of generic classes. |
genericObjects[] |
A list of generic objects. |