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

相关内容

热门资讯

第1分钟辅助!wpk透视辅助靠... 您好,wpk透视辅助靠谱吗这款游戏可以开挂的,确实是有挂的,需要了解加去威信【136704302】很...
4分钟辅助!werplan透视... 4分钟辅助!werplan透视挂,pokernow辅助工具,策略教程(有挂详细)1、pokernow...
6分钟辅助!aapoker真的... 6分钟辅助!aapoker真的假的,wepoker开脚本视频,技法教程(有挂解惑)1、下载好wepo...
第一分钟辅助!we poker... 第一分钟辅助!we poker免费辅助器,wpk插件,绝活儿教程(有挂分享)1、we poker免费...
第一分钟辅助!wepoker辅... 第一分钟辅助!wepoker辅助器官方,wepoker游戏的安装教程,指南教程(新版有挂)wepok...
第九分钟辅助!aapoker脚... 第九分钟辅助!aapoker脚本,德普之星透视辅助软件激活码,机巧教程(有挂秘籍)德普之星透视辅助软...
第1分钟辅助!wpk可以作弊吗... 第1分钟辅助!wpk可以作弊吗,steampokermaster辅助,举措教程(真是有挂)1、ste...
第一分钟辅助!德州透视脚本,h... 第一分钟辅助!德州透视脚本,hhpoker有辅助吗,攻略教程(有挂辅助)1、完成hhpoker有辅助...
3分钟辅助!hhpoker辅助... 3分钟辅助!hhpoker辅助器,德普之星辅助软件,练习教程(有挂猫腻)1、下载好德普之星辅助软件脚...
一分钟辅助!hh poker辅... 一分钟辅助!hh poker辅助器先试用,wepoker是不是有人用挂,烘培教程(有挂解惑)1、we...