Skip to content

Commit 82316ee

Browse files
Version 2.1.0
1 parent 9be2358 commit 82316ee

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

README.rst

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Setup
3535
url="http://example.com",
3636
consumer_key="ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
3737
consumer_secret="cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
38-
wp_api=True,
3938
version="wc/v3"
4039
)
4140
@@ -47,13 +46,11 @@ Options
4746
+=======================+=============+==========+=======================================================================================================+
4847
| ``url`` | ``string`` | yes | Your Store URL, example: http://woo.dev/ |
4948
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
50-
| ``consumerKey`` | ``string`` | yes | Your API consumer key |
49+
| ``consumer_key`` | ``string`` | yes | Your API consumer key |
5150
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
52-
| ``consumerSecret`` | ``string`` | yes | Your API consumer secret |
51+
| ``consumer_secret`` | ``string`` | yes | Your API consumer secret |
5352
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
54-
| ``wp_api`` | ``bool`` | no | Allow requests to the WP REST API (WooCommerce 2.6 or later) |
55-
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
56-
| ``version`` | ``string`` | no | API version, default is ``v3`` |
53+
| ``version`` | ``string`` | no | API version, default is ``wc/v3`` |
5754
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
5855
| ``timeout`` | ``integer`` | no | Connection timeout, default is ``5`` |
5956
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
@@ -63,6 +60,8 @@ Options
6360
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
6461
| ``oauth_timestamp`` | ``integer`` | no | Custom timestamp for requests made with oAuth1.0a |
6562
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
63+
| ``wp_api`` | ``bool`` | no | Set to false in order to use the legacy WooCommerce API (deprecated) |
64+
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
6665

6766
Methods
6867
-------
@@ -127,6 +126,12 @@ Example of returned data:
127126
Changelog
128127
---------
129128
129+
2.1.0 - 2019/01/15
130+
~~~~~~~~~~~~~~~~~~
131+
132+
- Uses WP REST API by default, need to force ``wp_api`` as ``False`` to in order to use the legacy WooCommerce API.
133+
- Updated default REST API version to ``wc/v3``.
134+
130135
2.0.0 - 2019/01/15
131136
~~~~~~~~~~~~~~~~~~
132137

woocommerce/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212
__title__ = "woocommerce"
13-
__version__ = "2.0.0"
13+
__version__ = "2.1.0"
1414
__author__ = "Claudio Sanches @ Automattic"
1515
__license__ = "MIT"
1616

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