Comments (5)
@Finb 我要不要彻底重写一下?
@lovelykd 这个锅是 @Finb 的
from bark-server.
title/body 除了可以放在 path 和 query 里
也能放在 POST Data 里的
curl -d 'title=123&body=hello world' -X POST https://api.day.app/:key/
from bark-server.
了解,谢谢你们的回复
from bark-server.
其实我一直觉得应该换个正经的 web 框架,轻量级的 router 啥的 😅
from bark-server.
目前的Get和Post请求都是将title/body/category等内容放在URL里面,我感觉对于Post请求,将它们封装为json payload更为合适
curl -d '{"title":"123", "body": "hello world"}' -H "Content-Type: application/json" -X POST https://api.day.app/:key/
-X 后面的内容不需要加引号吗?
from bark-server.
Related Issues (20)
- 【MySQL】Docker容器如何连接MySQL HOT 1
- SIGQUIT: exit signal does not handle properly HOT 2
- APNS 真实设备 Token 如果泄露了,会有什么后果? HOT 1
- 【如何限制未知设备连接到服务器】 HOT 3
- windows部署
- 转义问题 HOT 2
- official freebsd release ? HOT 1
- failed device token from database HOT 3
- 如何更换p8证书 HOT 4
- 4Kb最终实际剩余文本推送大小是多少?
- 哪里可以判断空内容不进行推送 HOT 1
- Cloudflare Worker Version
- 私有部署服务每次调用都会触发两次 HOT 2
- Feature Request: Add Support for Scheduled Messaging
- bark-server 返回 408 ,但是代码中没有找到返回 408 的地方
- 自建dockerserver推送失败报错苹果服务器EOF
- docker 安装后直接提示404 HOT 1
- 请问是否支持多客户端?
- Bark能不能设置白名单 HOT 14
- 推送服务器网址不支持带子路径的吗?必须是网站根目录? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bark-server.