Method: offerobject.list
HTTP 请求
GET https://walletobjects.googleapis.com/walletobjects/v1/offerObject
网址采用 gRPC 转码语法。
查询参数
参数 |
classId |
string
要列出其对象的类的 ID。
|
token |
string
如果已指定 maxResults ,但列表中有多于 maxResults 个的对象,则此参数用于获取下一组结果。例如,如果您有一个包含 200 个对象的列表,maxResults 设置为 20 时,调用的列表将返回前 20 个对象和一个令牌。使用设置为 20 的 maxResults 和令牌再次调用列表,将获取下一组的 20 个对象。
|
maxResults |
integer
确定列表返回的结果数上限。如果未定义 maxResults ,则返回所有结果。
|
响应正文
字段 |
resources[] |
object (OfferObject )
与列表请求相对应的资源。
|
pagination |
object (Pagination )
响应的分页。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/wallet_object.issuer
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-21。
[null,null,["最后更新时间 (UTC):2024-11-21。"],[[["Retrieves a paginated list of all offer objects for a given issuer ID using the `GET` method."],["Requires the `https://www.googleapis.com/auth/wallet_object.issuer` OAuth scope for authorization."],["Allows filtering by class ID and specifying the maximum number of results per page using query parameters."],["Returns an empty request body and a response body containing an array of offer objects and pagination details in JSON format."]]],["This outlines retrieving offer objects using a `GET` request to `https://walletobjects.googleapis.com/walletobjects/v1/offerObject`. The `classId`, `token`, and `maxResults` parameters in the query are used to filter and paginate results. The request body must be empty. A successful response returns a JSON object containing an array of `OfferObject` resources and `Pagination` details. This process requires the `https://www.googleapis.com/auth/wallet_object.issuer` authorization scope.\n"]]