Skip to content

Conversation

GaryPEGEOT-WIC
Copy link
Contributor

Avoid 'Invalid Key' message on request when filter key is set

Avoid 'Invalid Key' message on request when filter key is set
@maxrice
Copy link
Collaborator

maxrice commented Jun 5, 2015

@GaryPEGEOT-WIC filters are simple string keys, so something like this works fine:

print_r( $client->orders->get( null, array( 'filter[limit]' => 5, 'filter[meta]' => 'true' ) ) );

This change makes them a bit easier to use dynamically though, 👍

maxrice added a commit that referenced this pull request Jun 5, 2015
@maxrice maxrice merged commit bc14828 into kloon:master Jun 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants