Method: genericobject.addmessage
지정된 객체 ID로 참조되는 일반 객체에 메시지를 추가합니다.
HTTP 요청
POST https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}/addMessage
URL은 gRPC 트랜스코딩 문법을 사용합니다.
경로 매개변수
매개변수 |
resourceId |
string
객체의 고유 식별자입니다. 이 ID는 한 발급기관의 모든 클래스에서 고유해야 합니다. 이 값은 issuer ID 형식을 따라야 합니다.identifier 형식을 따라야 합니다. 발급기관 ID는 Google에서 발급하며 식별자는 개발자가 직접 선택합니다. 고유 식별자에는 영숫자 문자, '.', '_', '-'만 포함되어야 합니다.
|
요청 본문
요청 본문에 AddMessageRequest
의 인스턴스가 포함됩니다.
응답 본문
객체에 새 발급자 메시지를 추가하는 것에 대한 응답입니다. 여기에는 업데이트된 GenericObject 전체가 포함되어 있습니다.
성공할 경우 응답 본문에 다음 구조의 데이터가 포함됩니다.
필드 |
resource |
object (GenericObject )
업데이트된 GenericObject 리소스입니다.
|
승인 범위
다음 OAuth 범위가 필요합니다.
https://www.googleapis.com/auth/wallet_object.issuer
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2024-11-07(UTC)
[null,null,["최종 업데이트: 2024-11-07(UTC)"],[[["Adds a message to an existing generic object using its unique identifier."],["The request should be a `POST` request to the specified URL with the object ID as a path parameter and an `AddMessageRequest` in the body."],["Successful responses will contain the updated `GenericObject` resource in JSON format."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."]]],["This document details adding a message to a generic object via an HTTP POST request to `https://walletobjects.googleapis.com/walletobjects/v1/genericObject/{resourceId}/addMessage`. The `resourceId`, a unique object identifier, is a required path parameter. The request body contains an `AddMessageRequest`. A successful request returns an updated `GenericObject` in the response body, represented in JSON, including the `resource` field. This action requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope.\n"]]