使用 Vuforia API 存取資料 > Vuforia API > 存取已發佈程序的清單 > 進行 API 呼叫 > 傳回組織內所有已發佈的程序
  
傳回組織內所有已發佈的程序
如要傳回組織中所有已發佈的程序,請執行下列指令:
curl 'https://vuforia.ptc.com/ExperienceService/<orgid>/cms/projects/_default/distro/procedures?include=publishedonly' -H 'x-api-key: <x-api-key secret>'
一旦成功驗證 API 金鑰 (且確認有效),傳回的結果應類似下列範例:
{
"items": [
{
"resourceid": "eca66870-83fc-11ee-af7f-21f96fba3656",
"resourcetype": "procedures",
"resourcecreatedon": "2023-11-15T21:21:23.600Z",
"resourcecreatedby": "4ff62b7f-2aa8-4cb6-a80f-8347323f61f2",
"title": "heli-11-15-a",
"status": 1,
"lastpublishedby": "4ff62b7f-2aa8-4cb6-a80f-8347323f61f2",
"lastpublishedon": "2024-02-13T01:33:29.857Z",
"unpublishedby": null,
"unpublishedon": null,
"sharedpublished": 0,
"versionDescription": "",
"publicationUrl": "<url>",
"thumbnail": "<url>",
"contentUrl": "<url>",
"experienceUrl": "<url>",
"counts": {
"viewer": 1,
"list": 0
}
},
...
]
}
建構 URL 在 Vuforia Vantage 網頁版和 Vuforia Vantage 行動裝置版上存取程序
1. 從已發佈程序的 API 回應取得 experienceURL。例如:
"experienceUrl": "/ExperienceService/3f672328-27fd-9c3c-9454-0aa9bba0d8e9/cms/projects/_default/published/cr/f0b7be4597396a53870b5f23e462dd49/",
2. 根據您要建構 URL 的平台,從以下動作中擇一執行:
平台
指示
Vuforia Vantage 網頁版
在從回應中取得的 URL 前方加上以下內容:
https://vuforia.ptc.com/editor/webview?url=
例如:
https://vuforia.ptc.com/editor/webview?url=/ExperienceService/3f672328-27fd-9c3c-9454-0aa9bba0d8e9/cms/projects/_default/published/cr/f0b7be4597396a53870b5f23e462dd49/
Vuforia Vantage 行動裝置版
在從回應中取得的 URL 前方加上以下內容:
https://vantage.vuforia.com/command/view-procedure?url=https://vuforia.ptc.com
例如:
https://vantage.vuforia.com/command/view-procedure?url=https://vuforia.ptc.com/ExperienceService/3f672328-27fd-9c3c-9454-0aa9bba0d8e9/cms/projects/_default/published/cr/f0b7be4597396a53870b5f23e462dd49/