YanxinTang/clipboard-online
关于
在 💻Windows 和 📱iOS 之间分享内容
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- -1
- 15天
- -1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README_zh.md
原文clipboard-online
clipboard-online 是一款可以帮你在 💻Windows 和 📱iOS 之间分享剪切板的应用
文档
下载
直接下载
在这里下载发布的 .exe 文件
源码编译(只在 Windows 下可用,其他平台未知)
构建之前,请确保你已经安装了 golang. 如果没有,可能你需要这个
git clone [email protected]:YanxinTang/clipboard-online.gitcd clipboard-onlinego get github.com/akavel/rsrc- 构建
- Bash:
./build.sh - PowerShell:
.\build.ps1
- Bash:
- 你可以在
release目录下找到可执行文件
使用
iOS 用户
在 Windows 上运行
clipboard-onlineiPhone 或 iPad 上安装快捷指令 (在 safari 中打开链接)
设置 ip 地址和 authkey (默认是空字符串)。参考 https://www.kejiwanjia.com/jiaocheng/zheteng/83030.html。
玩的开心...😊
Android 用户
HTTP Shortcuts: https://meta.appinn.net/t/topic/20322
Tasker: https://github.com/YanxinTang/clipboard-online/issues/26
非常感谢 @xiozf,@Befod 及其他贡献者,谢谢你们为 Android 平台提供的支持!
配置
clipboard-online.exe 将在运行路径下面创建两个文件: config.json and log.txt
你可以通过修改 config.json 来自定义配置
config.json
port- 类型:
string - 默认:
"8086"
- 类型:
logLevel- 类型:
string - 默认:
"warning" - 可选:
"panic","fatal","error","warning","info","debug","trace"
- 类型:
authkey- type:
string - default:
''
- type:
authkeyExpiredTimeout- type:
int64 - default:
30
- type:
tempDir- type:
string - default:
./temp
- type:
reserveHistory- type:
Boolean - default:
false
- type:
notify- type:
object - children:
copy- type:
Bollean - default:
false
- type:
paste- type:
Boolean - default:
false
- type:
- type:
API
公共 headers
必选
X-API-Version: indicates version of api
可选
X-Client-Name: indicates name of deviceX-Auth: hashed authkey. Value frommd5(config.authkey + timestamp/30)
1. 获取 Windows 剪切板
Request
- URL:
/ - Method:
GET
Reponse
- Body:
json
// 200 ok
{
"type": "text",
"data": "clipboard text on the server"
}
{
"type": "file",
"data": [
{
"name": "filename",
"content": "base64 string of file bytes"
}
...
]
}
2. 设置 Windows 剪切板
Request
URL:
/Method:
POSTHeaders:
X-Content-Type: indicates type of request body contentrequired- values:
text,file,media
Body:
json
For text:
{
"data": "text you want to set"
}
For file:
{
"data": [
{
"name": "filename",
"base64": "base64 string of file bytes"
}
]
}
响应的 body 为空。如果剪切板设置成功,状态码将返回 200
探索相关项目
加载中…

