8000 Use WooCommerce REST API v3 by default · Evert-Arends/wc-api-python@9be2358 · GitHub
[go: up one dir, main page]

Skip to content < 8000 span style="width: 0%;" data-view-component="true" class="Progress-item progress-pjax-loader-bar left-0 top-0 color-bg-accent-emphasis">

Commit 9be2358

Browse files
Use WooCommerce REST API v3 by default
1 parent 91e8ad7 commit 9be2358

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

woocommerce/api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"""
66

77
__title__ = "woocommerce-api"
8-
__version__ = "2.0.0"
8+
__version__ = "2.1.0"
99
__author__ = "Claudio Sanches @ Automattic"
1010
__license__ = "MIT"
1111

@@ -27,8 +27,8 @@ def __init__(self, url, consumer_key, consumer_secret, **kwargs):
2727
self.url = url
2828
self.consumer_key = consumer_key
2929
self.consumer_secret = consumer_secret
30-
self.wp_api = kwargs.get("wp_api", False)
31-
self.version = kwargs.get("version", "v3")
30+
self.wp_api = kwargs.get("wp_api", True)
31+
self.version = kwargs.get("version", "wc/v3")
3232
self.is_ssl = self.__is_ssl()
3333
self.timeout = kwargs.get("timeout", 5)
3434
self.verify_ssl = kwargs.get("verify_ssl", True)

0 commit comments

Comments
 (0)
0