8000 Fixed oAuth signature for WP REST API · factorlibre/wc-api-python@9a91924 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9a91924

Browse files
Fixed oAuth signature for WP REST API
1 parent bbc2574 commit 9a91924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

woocommerce/oauth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def generate_oauth_signature(self, params, url):
7373
string_to_sign = "%s&%s&%s" % (self.method, base_request_uri, query_string)
7474

7575
consumer_secret = str(self.consumer_secret)
76-
if self.version == "v3":
76+
if self.version not in ["v1", "v2"]:
7777
consumer_secret += "&"
7878

7979
hash_signature = HMAC(

0 commit comments

Comments
 (0)
0