...
The API is available via a command line interface (CLI). The API supports the following command line parameters:
- -u or -user The API user
- -k or -key The API key
- -m or -method The method for the quest (GET, POST, PUT, DELETE)
- -p or -params A serialized array of paramters as you would find in a URL string (e.g. first_name=John&last_name=Doe&company=Acme Co.)
Note | ||
---|---|---|
| ||
If any of your command line parameters contain special characters or space you must wrap quote marks (") around the value. |
Below is an example API requests.
No Format |
---|
php index.php /api/users/get.xml -u USER -k KEY -p "user_id=1" |
Within the Blesta environment
...