title: getting error 401 (authentication error) in WooCommerce
body: <p>I just created a WooCommerce site, and when I try to get json data it displays <strong>error 401</strong>. I tried to access it through postman with basic auth, and through the link: </p>
  
  <pre><code>(mysite)/wp-json/wc/v2/products?consumer_key=XXXX&amp;consumer_secret=XXXX
  </code></pre>
  
  <p>with keys that I have generated in WP. In <strong>both</strong> cases I am getting the same error.</p>
  
  <p>Config: 
  legacy api enabled,
  WC version 3.4.5,
  WP version  4.9.8,
  localhost server by Ampps.</p>