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
選用設定。要傳回的資料來源數量上限。服務傳回的產品數量可能會少於這個值。許可的最大值為 1000;超出的數值將一律指定為 1000。如未指定,系統會傳回資料來源的最大數量。
|
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。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-23 (世界標準時間)。
[null,null,["上次更新時間: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"]]