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 | 数据类型 | 必须 | 描述 | 示例值 |
---|---|---|---|---|
userId | string | 否 | blockly项目用户类别,默认为'test' | "test" |
version | string | 否 | Lite6机械臂传’lite6’,非lite6手臂不传该参数 | "lite6" |
folderName | string | 否 | blockly项目文件名称 | "test111" |
xmlData | string | 是 | blockly项目xml文件xml格式数据 | 参考message |
Response:
code=0->成功;
code!=0->失败,-32是写文件内容时错误
\
请求参数
无