Skip to content

8.app_create_file

创建Blockly文件接口

Message:

json
{
    "cmd": "app_create_file",
    "data": {
        "userId": "test",
        "version": "lite6",
        "folderName": "test111",
        "xmlData": "<xml xmlns='https://developers.google.com/blockly/xml'><block type='set_angle_acceleration' id='TUM:^s#`fiBaLI=KXSG5' x='-602' y='-32'><field name='acceleration'>500</field></block></xml>"
    },
    "id": "1"
}

Request:

  • cmd
    • string,必填,请求接口
  • date
    • Application/json,必填,请求数据
  • id
    • string,必填,请求序列号
data数据类型必须描述示例值
userIdstringblockly项目用户类别,默认为'test'"test"
versionstringLite6机械臂传’lite6’,非lite6手臂不传该参数"lite6"
folderNamestringblockly项目文件名称"test111"
xmlDatastringblockly项目xml文件xml格式数据参考message

Response:

code=0->成功;
code!=0->失败,-32是写文件内容时错误

\

请求参数