File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -89,22 +89,22 @@ DELETE
8989Response
9090--------
9191
92- All methods will return `Requests <http://docs.python-requests.org/en/latest/ >`_ object.
92+ All methods will return `Response <http://docs.python-requests.org/en/latest/api/#requests.Response >`_ object.
9393
9494Example of returned data:
9595
9696.. code-block :: bash
9797
98- >>> wcapi.get(" products" )
99- >>> wcapi .status_code
98+ >>> r = wcapi.get(" products" )
99+ >>> r .status_code
100100 200
101- >>> wcapi .headers[' content-type' ]
101+ >>> r .headers[' content-type' ]
102102 ' application/json; charset=UTF-8'
103- >>> wcapi .encoding
103+ >>> r .encoding
104104 ' UTF-8'
105- >>> wcapi .text
105+ >>> r .text
106106 u' {"products":[{"title":"Flying Ninja","id":70,...' // Json text
107- >>> wcapi .json ()
107+ >>> r .json ()
108108 {u' products' : [{u' sold_individually' : False,... // Dictionary data
109109
110110
You can’t perform that action at this time.
0 commit comments