Correct REST API url for ‘and’ in filters
-
Hi
I’m trying to retrieve data via the Slimstat REST API but am getting errors when I use the “&&&” operator as part of the filter. I’m using the code below to generate the URL:
$params = [ 'token' => $token, 'function' => 'count', 'dimension' => 'id', 'filters' => 'month equals 7&&&year equals 2022' ]; $link = "{$url}wp-json/slimstat/v1/get?" . http_build_query($params);
The request works fine if I simplify the condition to “month equals 7”.
Can you please tell me the correct way to specify the and condition in this context.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Correct REST API url for ‘and’ in filters’ is closed to new replies.