Merchant API v1beta 将于 2026 年 2 月 28 日停用并关停。如需了解迁移到最新稳定版的步骤,请参阅
从 v1beta 迁移到 v1。
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。"],[],["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"]]