I am building a website and trying to pull the data from Wordpress using the WP rest api. On wordpress, the WooCommerce plugin has been added so the user contain more info and I have added additional field using a plugin.
First, how can I get all the user info ? incl. WooCommerce (mostly billing/Shipping) and also all the tother fields I have added using CIMY user extrafield
. I am coding in react but I do not really care about the react part.
I am more interested to understand, who WP handle it (endpoint) and a simple example with Postman is enough.
I tried http://xx.yyy.zzz.aaa/wp-json/wp/v2/users/user_id
and add the authorization token in the header but it's not working. it keep replying:
{
"code": "rest_no_route",
"message": "No route was found matching the URL and request method",
"data": {
"status": 404
}
}
Regards
user_id
with the user's ID?amartin
so I replaced user_id byamartin