AutodeskForge自动化
创始人
2024-11-12 11:00:41
0

使用 Forge Design Automation API 实现自动化工作流程

Forge Design Automation API 是一个面向开发人员的 API,可以帮助您实现自动化工作流程,包括自动生成、检查、转换和发布设计文件等操作。

以下是使用 Forge Design Automation API 进行自动化操作的代码示例:

  1. 创建工作项
POST https://developer.api.autodesk.com/da/us-east/v3/workitems

{
    "activityId": "myActivityId",
    "arguments": {
         "myInputFile": { "url": "https://myinputfile.com", "verb": "get" },
         "myOutputFile": { "url": "https://myoutputfile.com", "verb": "put" }
    },
    "miscellaneous": {
         "mykey": "myvalue"
    },
    "id": "myWorkItemId",
    "status": "Pending"
}
  1. 等待工作项完成
GET https://developer.api.autodesk.com/da/us-east/v3/workitems/{workItemId}

{
   "status": "Succeeded",
   "arguments": {
      "myOutputFile": {
         "url": "https://myoutputfile.com",
         "verb": "put",
         "headers": {
            "Content-Length": "1234",
            "Content-Type": "application/octet-stream"
         }
      }
   },
   "miscellaneous": {
      "mykey": "myvalue"
   }
}
  1. 获取工作项结果
GET https://myoutputfile.com

相关内容

热门资讯

第3分钟辅助!hh poker... 第3分钟辅助!hh poker透视器下载,德普之星透视,技法教程(有挂功能)在进入hh poker透...
第1分钟辅助!wepoker数... 第1分钟辅助!wepoker数据分析,we-poker有人玩吗,法门教程(有挂助手)1、we-pok...
第一分钟辅助!wepoker破... 第一分钟辅助!wepoker破解器,菠萝辅助器免费版的特点,经验教程(有挂规律)1、玩家可以在菠萝辅...
5分钟辅助!约局吧德州真的有透... 5分钟辅助!约局吧德州真的有透视挂吗,we-poker软件,妙计教程(今日头条)约局吧德州真的有透视...
第九分钟辅助!wpk插件,hh... 第九分钟辅助!wpk插件,hh poker辅助有用吗,资料教程(确实有挂)1、首先打开hh poke...
第三分钟辅助!wepoker透... 第三分钟辅助!wepoker透视脚本苹果版,pokemmo辅助器,教程书教程(确实有挂)1、完成we...
第三分钟辅助!哈糖大菠萝能开挂... 第三分钟辅助!哈糖大菠萝能开挂吗,aapoker脚本,法门教程(有人有挂)1、超多福利:超高返利,海...
两分钟辅助!wepoker游戏... 两分钟辅助!wepoker游戏的安装教程,wepoker透视苹果系统,法子教程(确实有挂)1、这是跨...
七分钟辅助!德扑之心免费透视,... 七分钟辅助!德扑之心免费透视,wepoker私人辅助器,方案教程(有挂教学)1、德扑之心免费透视免费...
三分钟辅助!hhpoker可以... 三分钟辅助!hhpoker可以开挂吗,wepoker私人局透视教程,操作教程(有挂讲解)1、wepo...