YanxinTang/clipboard-online
حول
مشاركة المحتوى بين 💻Windows و📱iOS
تطوير الويب والتطبيقاتالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- -١
- خلال 15 يومًا
- -١
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلclipboard-online
clipboard-online is an application to share cilpboard text between Windows and iOS
Documentation
Download
Directly download
You can download latest release exe from here
From source code(only windows now)
Before you build, make sure you have installed golang. If not, maybe you need this
git clone [email protected]:YanxinTang/clipboard-online.gitcd clipboard-onlinego get github.com/akavel/rsrc- Build
- Bash:
./build.sh - PowerShell:
.\build.ps1
- Bash:
- You can find release bin at
releasedirectory
Usage
For iOS users
- Run
clipboard-onlineon your windows - Setup shortcuts on you iPhone/iPad (Open link from safari)
- Set ip address and authkey (default is empty string). Reference https://www.kejiwanjia.com/jiaocheng/zheteng/83030.html
- Have fun...😊
For Android users
HTTP Shortcuts: https://meta.appinn.net/t/topic/20322
Tasker: https://github.com/YanxinTang/clipboard-online/issues/26
Thanks for the hard working by @xiozf, @Befod and someone else contributed for the Android approach!
Configuration
clipboard-online.exe will create two file which are config.json and log.txt in the execute path when first running
You can make customization by editing config.json
config.json
port- type:
string - default:
"8086"
- type:
logLevel- type:
string - default:
"warning" - values:
"panic","fatal","error","warning","info","debug","trace"
- type:
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
The default http server will listen 8086 port and you can't chanage that since hardcoded.
Common headers
Required
X-API-Version: indicates version of api
Optional
X-Client-Name: indicates name of deviceX-Auth: hashed authkey. Value frommd5(config.authkey + timestamp/30)
1. Get windows clipboard
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. Set windows clipboard
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"
}
]
}
Reponse
Reponse body is empty. If set successfully, status code will be 200
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…

