Skip to content

Commit fd81fde

Browse files
Fixed examples on README.rst
1 parent e1de259 commit fd81fde

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ Setup
2626

2727
.. code-block:: python
2828
29-
from woocommerce import WooCommerce
29+
from woocommerce import API
3030
31-
wcapi = woocommerce.api(
31+
wcapi = API(
3232
url="http://example.com",
3333
consumer_key="ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
3434
consumer_secret="cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
@@ -92,14 +92,14 @@ Example of returned data:
9292

9393
.. code-block:: bash
9494
95-
>>> woocommerce.get("products")
96-
>>> woocommerce.status_code
95+
>>> wcapi.get("products")
96+
>>> wcapi.status_code
9797
200
98-
>>> woocommerce.headers['content-type']
98+
>>> wcapi.headers['content-type']
9999
'application/json; charset=UTF-8'
100-
>>> woocommerce.encoding
100+
>>> wcapi.encoding
101101
'UTF-8'
102-
>>> woocommerce.text
102+
>>> wcapi.text
103103
u'{"products":[{"title":"Flying Ninja","id":70,...' // Json text
104-
>>> woocommerce.json()
104+
>>> wcapi.json()
105105
{u'products': [{u'sold_individually': False,... // Dictionary data

0 commit comments

Comments
 (0)
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