-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Description
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.
skorasaurus
Metadata
Metadata
Assignees
Labels
No labels