35
35
url = " http://example.com" ,
36
36
consumer_key = " ck_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
37
37
consumer_secret = " cs_XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" ,
38
- wp_api = True ,
39
38
version = " wc/v3"
40
39
)
41
40
@@ -47,13 +46,11 @@ Options
47
46
+=======================+=============+==========+=======================================================================================================+
48
47
| ``url `` | ``string `` | yes | Your Store URL, example: http://woo.dev/ |
49
48
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
50
- | ``consumerKey `` | ``string `` | yes | Your API consumer key |
49
+ | ``consumer_key `` | ``string `` | yes | Your API consumer key |
51
50
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
52
- | ``consumerSecret `` | ``string `` | yes | Your API consumer secret |
51
+ | ``consumer_secret `` | ``string `` | yes | Your API consumer secret |
53
52
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
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 `` |
57
54
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
58
55
| ``timeout `` | ``integer `` | no | Connection timeout, default is ``5 `` |
59
56
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
@@ -63,6 +60,8 @@ Options
63
60
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
64
61
| ``oauth_timestamp `` | ``integer `` | no | Custom timestamp for requests made with oAuth1.0a |
65
62
+-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
63
+ | ``wp_api `` | ``bool `` | no | Set to false in order to use the legacy WooCommerce API (deprecated) |
64
+ +-----------------------+-------------+----------+-------------------------------------------------------------------------------------------------------+
66
65
67
66
Methods
68
67
-------
@@ -127,6 +126,12 @@ Example of returned data:
127
126
Changelog
128
127
---------
129
128
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
+
130
135
2.0.0 - 2019/01/15
131
136
~ ~~~~~~~~~~~~~~~~~
132
137
0 commit comments