Rest API does not work
-
Hi
I followed this:
https://docs.masteriyo.com/for-developers/rest-api#making-api-requests
curl -X 'GET' \ 'https://your-site.com/wp-json/masteriyo/v1/courses/categories' \ -H 'accept: application/json' \ -H 'authorization: Basic <your_auth_key>'
but got this error:
{‘code’: ‘masteriyo_rest_cannot_read’, ‘message’: ‘Sorry, you cannot list resources.’, ‘data’: {‘status’: 401}}
how to fix that?
thanks
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.