Method: offerobject.get
Muestra el objeto de oferta con el ID de objeto determinado.
Solicitud HTTP
GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}
La URL usa la sintaxis de la transcodificación gRPC.
Parámetros de ruta de acceso
Parámetros |
resourceId |
string
Es el identificador único de un objeto. Este ID debe ser único para todos los objetos de un emisor. Este valor debe seguir el formato issuer ID.identifier, donde Google emite el primero y tú eliges el segundo. El identificador único solo debe incluir caracteres alfanuméricos, “.”, “_” o “-”.
|
Cuerpo de la solicitud
El cuerpo de la solicitud debe estar vacío.
Cuerpo de la respuesta
Si se ejecuta de forma correcta, el cuerpo de la respuesta contiene una instancia de OfferObject
.
Permisos de autorización
Requiere el siguiente alcance de OAuth:
https://www.googleapis.com/auth/wallet_object.issuer
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-11-07 (UTC)
[null,null,["Última actualización: 2024-11-07 (UTC)"],[[["Retrieves a specific offer object using its unique identifier."],["The request requires an empty body and uses the `GET` method with a specific URL structure."],["Successful responses provide the offer object details in the response body."],["Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` scope."],["The object ID must follow a specific format including issuer and identifier components."]]],["The core content describes retrieving an offer object using a `GET` request to a specific URL: `https://walletobjects.googleapis.com/walletobjects/v1/offerObject/{resourceId}`. The `resourceId` is a unique string identifier following the format `issuer ID.identifier`. The request body must be empty, and the successful response will contain an `OfferObject` instance. Authorization requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope. The content also specifies the use of gRPC transcoding syntax in the URL.\n"]]