From: Joe Rickerby Date: Thu, 11 Jan 2018 19:46:08 +0000 (+0000) Subject: add docs for JSON type X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=44fd73824b54513bd6001a3daeb954250ba59c10;p=sirius.git add docs for JSON type --- 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