Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about 'filter' parameter in deals/v2 endpoint #7

Open
stplat opened this issue Jun 1, 2024 · 1 comment
Open

Question about 'filter' parameter in deals/v2 endpoint #7

stplat opened this issue Jun 1, 2024 · 1 comment

Comments

@stplat
Copy link

stplat commented Jun 1, 2024

Hello,

I'm trying to use the 'filter' parameter in the deals/v2 endpoint but keep getting a 400 error with the message "Invalid 'filter' value". The documentation does not specify what values are valid for this parameter. Could you please provide some examples or clarify the correct usage of the 'filter' parameter?

Thank you!

$response = $this->client->request('GET', 'deals/v2', [
    'query' => [
        'key' => $this->apiKey,
        'shops' => implode(',', $shops),
        'limit' => $limit,
        'filter' => 'type:game'
    ]
]);
@tfedor
Copy link
Member

tfedor commented Jun 1, 2024

Filter is the same value as you can see in on the site, in URL. It's basically compressed JSON, but I don't currently have a public JSON schema for filters published.

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

No branches or pull requests

2 participants