You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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?
The text was updated successfully, but these errors were encountered: