ovh-api-bash-client/README.md

33 lines
696 B
Markdown
Raw Normal View History

2014-04-17 20:13:09 +02:00
ovhApiBashClient
================
A bash client for OVH API (https://api.ovh.com/)
Initialize
----------
In order to create a new OVH API application, run :
2014-04-17 20:16:30 +02:00
```
2014-04-17 20:13:09 +02:00
./ovhApiBashClient.sh --initApp
2014-04-17 20:16:30 +02:00
```
2014-04-17 20:13:09 +02:00
Usage
-----
To make a basic call on GET /me just run :
2014-04-17 20:16:30 +02:00
```
2014-04-17 20:13:09 +02:00
./ovhApiBashClient.sh
2014-04-17 20:16:30 +02:00
```
2014-04-17 20:13:09 +02:00
Options
-------
Possible arguments are:
2014-04-17 20:16:30 +02:00
```
2014-04-17 20:13:09 +02:00
--url <url> : the API URL to call, for example /domains (default is /me)
--method <method> : the HTTP method to use, for example POST (default is GET)
--data <JSON data> : the data body to send with the request
--init : to initialize the consumer key
--initApp : to initialize the API application
2014-04-17 20:16:30 +02:00
```