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

AnalyticsQueryCountRequest sets operators to false #2

Open
hritesh opened this issue Jun 16, 2023 · 0 comments
Open

AnalyticsQueryCountRequest sets operators to false #2

hritesh opened this issue Jun 16, 2023 · 0 comments

Comments

@hritesh
Copy link

hritesh commented Jun 16, 2023

Hi,
I created an instance of AnalyticsCountQueryRequest() with these params
"filters" => [ [ "name" => "VIDEO_TITLE", "operator" => "EQ", "value" => $videoTitle ] ], "dimension" => "IMPRESSION_ID", "start" => $start, ];
After making the api call as
$response = $this->bitmovinApi->analytics->queries->count->create($request);

It gives the following error

Request: POST /v1/analytics/queries/count Request Body: {"start":"2023-06-16T10:55:16+00:00","licenseKey":"mykey","filters":[{"name":"VIDEO_TITLE","operator":false,"value":"my video title"}],"dimension":"IMPRESSION_ID"} Response: 400 Response Body: {"requestId":"f3986c69-0021-490b-b3aa-d606fa5a68b1","status":"ERROR","data":{"code":1001,"message":"General error: One or more parameters are not valid","developerMessage":"Your request contains invalid data and could not be processed! Check also your JSON syntax!"}}

Here the value of operator is set to false which should be EQ.

I found out after debugging that the map() method of the ApiResource is unable to map the operator.

And is there no way to get the response as pure json?

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

1 participant