This commit is contained in:
sneakypete81 2013-08-18 11:39:54 -07:00
commit 49d146f155

View file

@ -3,7 +3,7 @@ Trovebox Python Library
======================= =======================
(Previously known as openphoto-python) (Previously known as openphoto-python)
.. image:: https://api.travis-ci.org/photo/openphoto-python.png .. image:: https://travis-ci.org/photo/openphoto-python.png?branch=master
:alt: Build Status :alt: Build Status
:target: https://travis-ci.org/photo/openphoto-python :target: https://travis-ci.org/photo/openphoto-python
@ -77,11 +77,16 @@ API Versioning
============== ==============
It may be useful to lock your application to a particular version of the Trovebox API. It may be useful to lock your application to a particular version of the Trovebox API.
This ensures that future API updates won't cause unexpected breakages. This ensures that future API updates won't cause unexpected breakages.
To do this, configure your Trovebox client as follows::
To do this, add the optional ``api_version`` parameter when creating the client object:: client.configure(api_version=2)
from trovebox import Trovebox SSL Verification
client = Trovebox(api_version=2) ================
If you connect to your Trovebox server over HTTPS, its SSL certificate is automatically verified.
You can configure your Trovebox client to bypass this verification step::
client.configure(ssl_verify=False)
Commandline Tool Commandline Tool
================ ================