Skip to content

AnalyticsQueryCountRequest sets operators to false #2

Description

@hritesh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions