Add api example with curl

This commit is contained in:
Frédéric Guillot 2013-08-17 11:45:47 -04:00
parent 5d78960212
commit 94a0f4427d
1 changed files with 7 additions and 0 deletions

7
examples/api_client.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/sh
curl \
-u "demo:/EobxWLMrb+VO8G" \
-d '{"jsonrpc": "2.0", "method": "feed.create", "params": {"url": "http://images.apple.com/main/rss/hotnews/hotnews.rss"}, "id": 1}' \
https://miniflux.net/demo/jsonrpc.php