diff --git a/README.rst b/README.rst index 69b8773..cb3483f 100644 --- a/README.rst +++ b/README.rst @@ -89,22 +89,22 @@ DELETE Response -------- -All methods will return `Requests `_ object. +All methods will return `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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy