hcgcloud / pterodactyl-sdk

Pterodactyl Panel PHP SDK/API wrapper
https://hcgcloud.github.io/pterodactyl-sdk-docs/
MIT License
27 stars 25 forks source link

Filters on users not being applied #32

Closed JWaldecker closed 3 years ago

JWaldecker commented 3 years ago

I'm trying to filter by an email using the query parameter at the paginate function:

...
->users
->paginate(1, [
    'filter' => [
        'email' => 'info@example.com'
    ]
]);

As in src/Http.php line 88 the query parameter is passed as a payload and not as query parameter. This causes that the query parameters are not correctly sent to the api. The query parameters are for example needed in the filter mentioned above.

I will submit a PR to solve this behavior in the next hours. If you have any additional point for me please comment.