0

I am trying to access product details as json through woocommerce rest api. Rest api is enabled in backend and cusumer key and secret is also generated some how it's not working please suggest me.

enter image description here

Cœur
  • 37,241
  • 25
  • 195
  • 267
theUturn
  • 1,101
  • 2
  • 12
  • 25

2 Answers2

1

You need to choose the correct authorization type which is OAuth 1.0 and then you input your consumer key and secret in the empty fields.

kadddeee
  • 498
  • 8
  • 20
0

You can not authenticate just by passing the CK and CS in the payload.

You need to use the appropriate authentication method for the call to the end point:

  • HTTPS - Basic authentication
  • HTTP - oAuth 1

As Basic authentication is easier, and HTTPS is now the norm, I'd suggest that route. See my answer here for more information.

KolonUK
  • 443
  • 1
  • 6
  • 14