Comparison

mod_pubsub_post/README.markdown @ 3505:106b4ae4469b

mod_pubsub_post/README: Mention use as a webhook receiver
author Kim Alvefur <zash@zash.se>
date Sat, 30 Mar 2019 23:33:58 +0100
parent 3503:882180b459a0
child 3506:7b1eede1a840
comparison
equal deleted inserted replaced
3504:9ef5b229f73e 3505:106b4ae4469b
1 ---
2 summary: Publish to PubSub nodes from via HTTP POST/WebHooks
3 ---
4
1 # Introduction 5 # Introduction
2 6
3 Lets you easily publish data to PubSub using a HTTP POST request. The 7 This module is a fairly generic WebHook receiver that lets you easily
4 payload can be Atom feeds, arbitrary XML, or arbitrary JSON. The type 8 publish data to PubSub using a HTTP POST request. The payload can be
5 should be indicated via the `Content-Type` header. 9 Atom feeds, arbitrary XML, or arbitrary JSON. The type should be
10 indicated via the `Content-Type` header.
6 11
7 ``` {.bash} 12 ``` {.bash}
8 curl http://localhost:5280/pubsub_post/princely_musings \ 13 curl http://localhost:5280/pubsub_post/princely_musings \
9 -H "Content-Type: application/json" \ 14 -H "Content-Type: application/json" \
10 --data-binary '{"musing":"To be, or not to be: that is the question"}' 15 --data-binary '{"musing":"To be, or not to be: that is the question"}'