REST API equivalent of slicewp_get_affiliate_by_user_id()
-
I’m wanting to use the REST API to get Affiliate details for a particular user_id.
I’m trying to call the equivalent of slicewp_get_affiliate_by_user_id() from the REST API. I see there is an API get call
https://example.com/wp-json/slicewp/v1/affiliates/
to get all affiliates, but I’ve tried passing a query parameter e.g.?user_id=12
but it doesn’t seem to work and Postman still just returns the full list of affiliates.How can I use the REST API to pass specific data, either as a GET or POST request, e.g. using Postman?
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘REST API equivalent of slicewp_get_affiliate_by_user_id()’ is closed to new replies.