diff --git a/API.md b/API.md index a6e937f..ac3474c 100644 --- a/API.md +++ b/API.md @@ -35,4 +35,16 @@ curl -H "Authorization: key" -XPOST "https://api.makesweet.com/make/heart-locket ``` ------- -the default is images go before text, use &textfirst=1 to make text go first. +use a different template: +available templates: "billboard-cityscape", "circuit-board", "flag", "flying-bear", "heart-locket", "nesting-doll" +``` +curl -H "Authorization: key" -XPOST "https://api.makesweet.com/make/flag" -F images=@frog.jpg -o frog.gif +``` +------- + +make text go before images: +use &textfirst=1 +``` +curl -H "Authorization: key" -XPOST "https://api.makesweet.com/make/heart-locket?text=frog&textfirst=1" -F images=@frog.jpg -o frog.gif +``` +------- diff --git a/public/index.html b/public/index.html index 575f0c5..5699e7a 100644 --- a/public/index.html +++ b/public/index.html @@ -20,4 +20,9 @@

send stuff with text border:

curl -H "Authorization: key" -XPOST "https://api.makesweet.com/make/heart-locket?text=a+frog,%0Aa+very,+very+coolfrog&textborder=200" -F images=@frog.jpg -o frog.gif

-

the default is images go before text, use &textfirst=1 to make text go first.

+

use a different template: available templates: “billboard-cityscape”, “circuit-board”, “flag”, “flying-bear”, “heart-locket”, “nesting-doll”

+
curl -H "Authorization: key" -XPOST "https://api.makesweet.com/make/flag" -F images=@frog.jpg -o frog.gif
+
+

make text go before images: use &textfirst=1

+
curl -H "Authorization: key" -XPOST "https://api.makesweet.com/make/heart-locket?text=frog&textfirst=1" -F images=@frog.jpg -o frog.gif
+
diff --git a/templates/circuit-board.zip b/templates/circuit-board.zip new file mode 100644 index 0000000..3dafa4d Binary files /dev/null and b/templates/circuit-board.zip differ diff --git a/templates/flying-bear.zip b/templates/flying-bear.zip new file mode 100644 index 0000000..b0603f8 Binary files /dev/null and b/templates/flying-bear.zip differ diff --git a/templates/nesting-doll.zip b/templates/nesting-doll.zip new file mode 100644 index 0000000..9c31485 Binary files /dev/null and b/templates/nesting-doll.zip differ diff --git a/writeIndex.sh b/writeIndex.sh new file mode 100755 index 0000000..b13717f --- /dev/null +++ b/writeIndex.sh @@ -0,0 +1,2 @@ +#!/bin/bash +pandoc -f markdown -t html API.md > public/index.html