WooCommerce - woocommerce_rest_cannot_view - Status 401

前端 未结 10 947
眼角桃花
眼角桃花 2021-01-02 00:09

I have generated a consumer key and consumer secret. The website has SSL installed. I have also installed plugins required for JSON and REST services. This is how the url lo

10条回答
  •  旧巷少年郎
    2021-01-02 00:50

    Try making the request using query parameter, like this:

    https://www.exemple.com/wp-json/wc/v3/orders?consumer_key=ck_01234567890&consumer_secret=cs_01234567890
    

    here: https://www.exemple.com you'll need to fill your url domain.

    here: consumer_key and consumer_secret is your ck and cs that was previous genereted on WooCommerce > Settings > Advanced > REST API

提交回复
热议问题