使用 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
}
},
...
]
}
Vuforia Vantage Web 版和 Vuforia Vantage 移动设备版上,构建过程访问 URL
1. 从已发布过程的 API 响应获取 experienceURL。例如:
"experienceUrl": "/ExperienceService/3f672328-27fd-9c3c-9454-0aa9bba0d8e9/cms/projects/_default/published/cr/f0b7be4597396a53870b5f23e462dd49/",
2. 根据要构建 URL 的平台,执行下列操作之一:
平台
操作说明
Vuforia Vantage Web 版
对于从响应中获取的 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/