Action
Send to Flomo
说明
- 通过API将文本发送到flomo
- 需要将你flomo的API复制替换到代码"双引号中输入自己的API"中(引号保留)
- 此功能须修改代码,因此Drafts需要付费Pro才能使用
Steps
-
script
let http = HTTP.create(); let api = "双引号中输入自己的API"; let response = http.request({ url: api, method: 'POST', data: { content: draft.content }, }); if (response.success) { console.log("已成功发送到 flomo"); // 脚本执行完毕 script.complete(); } else { console.log(response.statusCode); console.log(response.error); // 执行出错 context.fail("请求flomo API失败"); }
Options
-
After Success Default Notification Info Log Level Info
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.