From 44fd73824b54513bd6001a3daeb954250ba59c10 Mon Sep 17 00:00:00 2001 From: Joe Rickerby Date: Thu, 11 Jan 2018 19:46:08 +0000 Subject: [PATCH] add docs for JSON type --- sirius/web/templates/print_key.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/sirius/web/templates/print_key.html b/sirius/web/templates/print_key.html index 9f09615..1e52ee1 100644 --- a/sirius/web/templates/print_key.html +++ b/sirius/web/templates/print_key.html @@ -90,6 +90,20 @@ -H 'content-type: image/gif' \ --data-binary @- +

JSON

+

+ Content-Type: application/json +

+

+ Print Keys accept JSON encoded text or HTML. This is great for working with IFTTT! +

+

+ Send HTML using the html key or plain text using the text key. +

+
curl '{{request.url}}?from=jsonexample' \
+    -H 'content-type: application/json' \
+    -d '{"html":"<h1>header!</h1>"}'
+

Text

Content-Type: text/plain -- 2.47.3