Simple command line interface wrapper for OVH API : https://api.ovh.com
all implementations use stdin for input, stdout for output and stderr for error. Args on command line are used to set http method and query URL.
- Method : POST, GET or PUT.
- Query : Indicate the reference query from : https://api.ovh.com
- Option : Specify an option for POST or PUT method.
$ ovhapi GET /1.0/me
$ ovhapi GET /1.0/domain
$ echo '{"ip": "XXX.XXX.XXX.XXX"}' | ovhapi POST /1.0/dedicated/server/name_server/ipMove
or
$ echo '{ "to": "Name_server" }' | ovhapi POST /1.0/ip/IP/move