mirror of
https://github.com/SrIzan10/makesweet-api.git
synced 2026-05-01 10:55:14 +00:00
add more templates
This commit is contained in:
14
API.md
14
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
|
||||
```
|
||||
-------
|
||||
|
||||
@@ -20,4 +20,9 @@
|
||||
<p>send stuff with text border:</p>
|
||||
<pre><code>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</code></pre>
|
||||
<hr />
|
||||
<p>the default is images go before text, use &textfirst=1 to make text go first.</p>
|
||||
<p>use a different template: available templates: “billboard-cityscape”, “circuit-board”, “flag”, “flying-bear”, “heart-locket”, “nesting-doll”</p>
|
||||
<pre><code>curl -H "Authorization: key" -XPOST "https://api.makesweet.com/make/flag" -F images=@frog.jpg -o frog.gif</code></pre>
|
||||
<hr />
|
||||
<p>make text go before images: use &textfirst=1</p>
|
||||
<pre><code>curl -H "Authorization: key" -XPOST "https://api.makesweet.com/make/heart-locket?text=frog&textfirst=1" -F images=@frog.jpg -o frog.gif</code></pre>
|
||||
<hr />
|
||||
|
||||
BIN
templates/circuit-board.zip
Normal file
BIN
templates/circuit-board.zip
Normal file
Binary file not shown.
BIN
templates/flying-bear.zip
Normal file
BIN
templates/flying-bear.zip
Normal file
Binary file not shown.
BIN
templates/nesting-doll.zip
Normal file
BIN
templates/nesting-doll.zip
Normal file
Binary file not shown.
2
writeIndex.sh
Executable file
2
writeIndex.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
pandoc -f markdown -t html API.md > public/index.html
|
||||
Reference in New Issue
Block a user