Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,22 +89,22 @@ DELETE
Response
--------

All methods will return `Requests <http://docs.python-requests.org/en/latest/>`_ object.
All methods will return `Response <http://docs.python-requests.org/en/latest/api/#requests.Response>`_ object.

Example of returned data:

.. code-block:: bash

>>> wcapi.get("products")
>>> wcapi.status_code
>>> r = wcapi.get("products")
>>> r.status_code
200
>>> wcapi.headers['content-type']
>>> r.headers['content-type']
'application/json; charset=UTF-8'
>>> wcapi.encoding
>>> r.encoding
'UTF-8'
>>> wcapi.text
>>> r.text
u'{"products":[{"title":"Flying Ninja","id":70,...' // Json text
>>> wcapi.json()
>>> r.json()
{u'products': [{u'sold_individually': False,... // Dictionary data


Expand Down