简体   繁体   English

Autodesk Forge Webhooks API 发布已完成的 Webhook

[英]Autodesk Forge Webhooks API publish completed webhook

Is there a webhook that notifies that a model publish operation has been completed (succeeded/failed)?是否有通知模型发布操作已完成(成功/失败)的 webhook?

I found a webhook that notifies that the operation has started.我发现了一个通知操作已经开始的webhook However, it is not useful for me because I need to copy the model to another directory after the operation is completed and the model is updated.但是,对我来说没有用,因为我需要在操作完成并更新模型后将模型复制到另一个目录。

As per the documentation of the model.publish event, the payload.state property in the webhook callback represents:按照该文件中的model.publish情况下, payload.state在网络挂接回调属性表示:

Reason why the notification was triggered.触发通知的原因。 Possible values are PUBLISHING_PENDING and PUBLISHING_IN_PROGRESS.可能的值为 PUBLISHING_PENDING 和 PUBLISHING_IN_PROGRESS。

Note: There is no PUBLISHING_COMPLETE state.注意:没有 PUBLISHING_COMPLETE 状态。 Use the dm.version.added event to receieve notifications when publishing is finished.使用 dm.version. added 事件在发布完成时接收通知。

So, consider using the dm.version.added event.因此,请考虑使用dm.version . added事件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM