0

我創建了一個應用程序,使用WooCommerce Rest API顯示一些產品。WooCommerce Rest API - 產品類別過濾器不工作

我已經申請幾個過濾器,一切都看起來不錯,直到我試圖申請一個過濾器類別

http://foo/wc-api/v3/products?filter[limit]=15&filter[category]=some-category&oauth_consumer_key=ck_xx&oauth_nonce=xx&oauth_signature_method=HMAC-SHA1&oauth_timestamp=xx&oauth_version=1.0&filter%5Blimit%5D=15&filter%5Bcategory%5D=antioxidants&oauth_signature=xx%3D 

現在我得到的消息

DENIED - The requested resource requires user authentication. (XHR): GET ... 

任何想法,這是爲什麼?

回答

0

找到了答案(至少它的工作對我來說)

你需要做filter[category]的第一個參數在你的查詢字符串。

我會讓他們知道這一點。