Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
flomo-api-helper
Advanced tools
一个 flomo 的接口拓展工具,方便你开发自己的拓展工具。
本项目基于 flomo 的非公开接口开发,随时有可能挂掉,使用请悉知。
安装前请确保你的 Node.js 版本大于等于 12.0.0。
$ npm install flomo-api-helper -g
在任意位置新建一个目录。本文以 ~/flomo-api-helper
为例。
新建文件 ~/flomo-api-helper/.env
:
FLOMO_EMAIL=johnappleseed@apple.com
FLOMO_PASSWORD=123456qwerty
API_TOKEN=this-project-is-awesome
注意:
API_TOKEN
用于外部接口访问的鉴权。
$ cd ~/flomo-api-helper
$ flomo start [--address 127.0.0.1 --port 8080]
--address
127.0.0.1
(仅能本地访问,若要公网访问设为 0.0.0.0,建议用反代暴露 HTTPS 接口)--port
8080
在请求头中增加:
X-Token: this-project-is-awesome
/api/*
所有 https://flomoapp.com/api/*
的接口都暴露在了 /api/*
路由上,你可以直接发起请求。因为这些接口非公开,恕不提供文档。
PUT /helper/memo
新建一个 memo。
curl -X "PUT" "https://example.com/helper/memo" \
-H 'X-Token: this-project-is-awesome' \
-H 'Content-Type: application/json; charset=utf-8' \
-d $'{
"content": "测试内容",
"tags": "书摘",
"contentType": "text"
}'
content
tags
contentType
text
text
| html
text
类型会对 content
中的换行符进行处理,并且将内容转换成 flomo 能展示的内容;html
类型不会对 content
进行转换。flomo 支持展示少量的 HTML 标签,如果你想保存 Markdown 生成的 HTML 请将这里改为 html
。Wiki 页面列出了目前基于此 API 开发的拓展工具,欢迎使用。
FAQs
An API helper for flomoapp.com
We found that flomo-api-helper demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.