Method: accounts.dataSources.list
HTTP 请求
GET https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources
网址采用 gRPC 转码语法。
路径参数
参数 |
parent |
string
必需。要为其列出数据源的账号。格式:accounts/{account}
|
查询参数
参数 |
pageSize |
integer
可选。要返回的数据源数量上限。服务返回的值可能小于此值。最大值为 1,000;大于 1,000 的值会强制转换为 1,000。如果未指定,则会返回数据源数量上限。
|
pageToken |
string
可选。从之前的 dataSources.list 调用接收的页面令牌。利用其进行后续页面检索。 进行分页时,提供给 dataSources.list 的所有其他参数必须与提供页面令牌的调用匹配。
|
响应正文
dataSources.list 方法的响应消息。
如果成功,响应正文将包含结构如下的数据:
JSON 表示法 |
{
"dataSources": [
{
object (DataSource )
}
],
"nextPageToken": string
} |
字段 |
dataSources[] |
object (DataSource )
指定账号中的数据源。
|
nextPageToken |
string
可作为 pageToken 发送并用于检索下一页的令牌。如果省略此字段,则不存在后续页面。
|
授权范围
需要以下 OAuth 范围:
https://www.googleapis.com/auth/content
如需了解详情,请参阅 OAuth 2.0 Overview。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-01-23。
[null,null,["最后更新时间 (UTC):2025-01-23。"],[[["Lists data source configurations for a given Merchant Center account."],["Uses the `GET` method and requires `parent` as a path parameter to specify the account."],["Accepts optional query parameters for pagination: `pageSize` and `pageToken`."],["Returns a list of `DataSource` objects and a `nextPageToken` for subsequent pages, if available."],["Requires authorization with the `https://www.googleapis.com/auth/content` scope."]]],["This document details how to list data sources for a given account using an HTTP GET request. The request URL follows a specific format: `https://merchantapi.googleapis.com/datasources/v1beta/{parent=accounts/*}/dataSources`, where `parent` is the required account identifier. Optional query parameters, `pageSize` (maximum 1000) and `pageToken`, control the number of results and pagination. The request body should be empty. The successful response includes an array of `dataSources` and an optional `nextPageToken` for subsequent pages. The `https://www.googleapis.com/auth/content` OAuth scope is required.\n"]]