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[] |
|
eventTicketObjects[] |
|
flightClasses[] |
|
flightObjects[] |
|
giftCardClasses[] |
|
giftCardObjects[] |
|
loyaltyClasses[] |
|
loyaltyObjects[] |
|
offerClasses[] |
|
offerObjects[] |
|
transitClasses[] |
|
transitObjects[] |
|