mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #16] curl -s doesn't work #14
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#14
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @DUOLabs333 on GitHub (Nov 23, 2021).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/16
I can successfully push a message to, but I can't get it in a GET request with
curl -s@binwiederhier commented on GitHub (Nov 23, 2021):
Can you give a concrete example? Remember that the GET requires that you add /json or /raw or /sse at the end. Check out the examples on https://ntfy.sh/#subscribe-api
@DUOLabs333 commented on GitHub (Nov 23, 2021):
Do
curl -d "long process is down" ntfy.sh/duolabs333, thencurl -s ntfy.sh/duolabs333/raw. Nothing returns.@binwiederhier commented on GitHub (Nov 23, 2021):
Oh I see the confusion. The GET is a connection that stays open forever. If you open the GET first and then PUT/POST you'll see your messages in the GET. I should make a video...
You can also poll using ?poll=1
I'm not on my computer, otherwise I'd give you a detailed example.
@DUOLabs333 commented on GitHub (Nov 23, 2021):
Ok, I see that now.
@DUOLabs333 commented on GitHub (Nov 23, 2021):
Is there a way to get the last
nmessages?@binwiederhier commented on GitHub (Nov 23, 2021):
Long polling (connection stays open forever (:
Polling:
Check out the since= param to message since a timestamp.
@binwiederhier commented on GitHub (Nov 23, 2021):
Since: https://ntfy.sh/#fetching-cached-messages
@DUOLabs333 commented on GitHub (Nov 23, 2021):
Ok, thank you.