You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found this while trying to get a member count. If I use $emma->myMembers(array('count' => true)), the boolean value is converted to a 1 by http_build_query. Unfortunately, the Emma API seems to be expecting ?count=true or ?count=false (not ?count=1), so it ignores this parameter, and the response is an array of the first 500 members instead of an integer count.
Using $emma->myMembers(array('count' => 'true')) solves the issue. So, you should probably update the documentation OR we should see if Emma can change their API to check for any boolean value. Let me know if you have any questions.
The text was updated successfully, but these errors were encountered:
I found this while trying to get a member count. If I use
$emma->myMembers(array('count' => true))
, the boolean value is converted to a 1 by http_build_query. Unfortunately, the Emma API seems to be expecting?count=true
or?count=false
(not?count=1
), so it ignores this parameter, and the response is an array of the first 500 members instead of an integer count.Using
$emma->myMembers(array('count' => 'true'))
solves the issue. So, you should probably update the documentation OR we should see if Emma can change their API to check for any boolean value. Let me know if you have any questions.The text was updated successfully, but these errors were encountered: