對話動作已於 2023 年 6 月 13 日淘汰。詳情請參閱「
對話動作已淘汰」。
Method: sampleProjects.list
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
列出 gactions CLI 支援的所有範例專案。
HTTP 要求
GET https://actions.googleapis.com/v2/sampleProjects
這個網址使用 gRPC 轉碼語法。
查詢參數
參數 |
pageSize |
integer
選用設定。要傳回的範例專案數量上限。服務傳回的產品數量可能會少於這個值。如未指定,最多會傳回 1000 個範例專案。系統會將超過 1,000 個值強制轉換為 1000。
|
pageToken |
string
選用設定。從先前的「sampleProjects.list」接收到的網頁權杖呼叫。提供此項目即可擷取後續網頁。
|
回應主體
如果成功,回應主體會含有以下結構的資料:
sampleProjects.list 的遠端程序呼叫 (RPC) 回應。
JSON 表示法 |
{
"sampleProjects": [
{
object (SampleProject )
}
],
"nextPageToken": string
} |
欄位 |
sampleProjects[] |
object (SampleProject )
支援的範例專案清單。
|
nextPageToken |
string
可做為 pageToken 傳送的權杖,用於擷取後續網頁。如果省略這個欄位,就不會有後續頁面。
|
SampleProject
JSON 表示法 |
{
"name": string,
"hostedUrl": string,
"description": string
} |
欄位 |
name |
string
範例專案名稱。格式:sampleProjects/{sample_project}
|
hostedUrl |
string
代管樣本的 ZIP 檔案網址。
|
description |
string
範例專案的說明。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThis document outlines the API for listing sample projects supported by the gactions CLI, using a GET request to the specified endpoint.\u003c/p\u003e\n"],["\u003cp\u003eUsers can paginate results by specifying \u003ccode\u003epageSize\u003c/code\u003e and \u003ccode\u003epageToken\u003c/code\u003e query parameters for managing result sets.\u003c/p\u003e\n"],["\u003cp\u003eThe response includes a list of \u003ccode\u003esampleProjects\u003c/code\u003e, each containing a name, hosted URL for the project zip file, and a description.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSampleProjects\u003c/code\u003e are identified by a unique name in the format \u003ccode\u003esampleProjects/{sample_project}\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]