Merge pull request #22 from waku-org/chore/use-base64

chore(readme): show a way to simply post any payload
This commit is contained in:
Alvaro Revuelta 2023-11-09 14:11:16 +01:00 committed by GitHub
commit a41af0a7db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ curl http://127.0.0.1:8645/debug/v1/info
``` ```
curl -X POST "http://127.0.0.1:8645/relay/v1/auto/messages" \ curl -X POST "http://127.0.0.1:8645/relay/v1/auto/messages" \
-H "content-type: application/json" \ -H "content-type: application/json" \
-d '{"payload":"XaaabsQ==","contentTopic":"/my-app/2/chatroom-1/proto"}' -d '{"payload":"'$(echo -n "Hello Waku Network - from Anonymous User!" | base64)'","contentTopic":"/my-app/2/chatroom-1/proto"}'
``` ```
**Get messages sent to a `contentTopic`**. Note that any store node in the network is used to reply. **Get messages sent to a `contentTopic`**. Note that any store node in the network is used to reply.