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
89
89
Response
90
90
--------
91
91
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.
93
93
94
94
Example of returned data:
95
95
96
96
.. code-block :: bash
97
97
98
- >>> wcapi.get(" products" )
99
- >>> wcapi .status_code
98
+ >>> r = wcapi.get(" products" )
99
+ >>> r .status_code
100
100
200
101
- >>> wcapi .headers[' content-type' ]
101
+ >>> r .headers[' content-type' ]
102
102
' application/json; charset=UTF-8'
103
- >>> wcapi .encoding
103
+ >>> r .encoding
104
104
' UTF-8'
105
- >>> wcapi .text
105
+ >>> r .text
106
106
u' {"products":[{"title":"Flying Ninja","id":70,...' // Json text
107
- >>> wcapi .json ()
107
+ >>> r .json ()
108
108
{u' products' : [{u' sold_individually' : False,... // Dictionary data
109
109
110
110
You can’t perform that action at this time.
0 commit comments