mirror of
https://github.com/SrIzan10/makesweet-api.git
synced 2026-05-01 10:55:14 +00:00
clean up documentation
This commit is contained in:
10
API.md
10
API.md
@@ -8,20 +8,24 @@ Here's how to use it:
|
||||
|
||||
|
||||
examples (assuming MAKESWEET_API is set as env var):
|
||||
-------
|
||||
|
||||
send only text (use &text for more text)
|
||||
```
|
||||
curl -X POST $MAKESWEET_API/make/heart-locket?text=hello -o hello.gif
|
||||
```
|
||||
send only text (use &text for more text)
|
||||
-------
|
||||
|
||||
send only images (for multiple images, repeat with another -F)
|
||||
```
|
||||
curl -X POST $MAKESWEET_API/make/heart-locket -F "images[]=@image.jpg" -o animation.gif
|
||||
```
|
||||
send only images (for multiple images, repeat with another -F)
|
||||
-------
|
||||
|
||||
send both text and images
|
||||
```
|
||||
curl -X POST $MAKESWEET_API/make/heart-locket?text=squirrel -F "images[]=@image.jpg" -o animation.gif
|
||||
```
|
||||
send both text and images
|
||||
-------
|
||||
|
||||
the default is images go before text, use &textfirst=1 to make text go first
|
||||
|
||||
Reference in New Issue
Block a user