Hello there, I am building an app to grab data from a website running WooCommerce using the WooCommerce REST API.
I have successfully get data using HTTP Basic Auth by providing the consumer key as username and the consumer secret key as password. However, I would like to grab data from a staging website hosted by Siteground but ran into a 401 Unauthorized error.
According to Siteground support, this is because my staging website has password protection enabled using HTTP authentication. As in, visiting the website requires entering a username and password. They said I can resolve this by either disabling password protection on the website or configure the API to include the username and password.
To create an API on WooCommerce you just enter a name, assign a user, and choose its permission (read, write, or read/write). Not sure how I am supposed to modify it. Or can I configure the API connector to include those username and password?
Any insight would be appreciated. Thank you!