DEMO: Command Line Tool
To call Pro Convert Decoder API, wget and curl are supported in Linux, Windows, and Mac OS.
The location of cookie files varies according to the OS. Adjust the file path for your situation. The following examples are for Linux.
wget
1 Save your login information on cookies
wget --save-cookies=/var/tmp/sid.txt --keep-session-cookies "http://192.168.66.1/mwapi?method=login&id=Admin&pass=e3afed0047b08059d0fada10f400c1e5" -q -O -
2 List all users
wget --load-cookies=/var/tmp/sid.txt --keep-session-cookies "http://192.168.66.1/mwapi?method=get-users" -q -O -
3 Add a new user
wget --load-cookies=/var/tmp/sid.txt --keep-session-cookies "http://192.168.66.1/mwapi?method=add-user&id=test&pass=c4ca4238a0b923820dcc509a6f75849b" -q -O -
curl
1 Save your login information on cookies
curl --cookie-jar /var/tmp/sid.txt "http://192.168.66.1/mwapi?method=login&id=Admin&pass=e3afed0047b08059d0fada10f400c1e5"
2 List all users
curl --cookie /var/tmp/sid.txt "http://192.168.66.1/mwapi?method=get-users"
3 Add a new user
curl --cookie /var/tmp/sid.txt "http://192.168.66.1/mwapi?method=add-user&id=test&pass=c4ca4238a0b923820dcc509a6f75849b"