API - 400 Bad Request, Your browser sent a request that this server could not understand

Hello,

Thank you in advance.

 

I am trying to get the manufacturer using the API. For example

$queryString = ‚‘;
        if (!empty($params)) {
            $queryString = http_build_query($params);
        }
        $url = rtrim($url, ‚?‘) . ‚?‘;
        $url = $this->apiUrl . $url . $queryString;
        $dataString = json_encode($data);
        curl_setopt($this->cURL, CURLOPT_URL, $url);
        curl_setopt($this->cURL, CURLOPT_CUSTOMREQUEST, $method);
        curl_setopt($this->cURL, CURLOPT_POSTFIELDS, $dataString);
        curl_setopt($this->cURL, CURLOPT_USERAGENT,‚Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36‘);
        curl_setopt(
            $this->cURL,
            CURLOPT_HTTPHEADER,
            [
                ‚Content-Type  : application/json;‘,
                'Authorization : Bearer '.$this->accessToken
            ]
        );
        $result = curl_exec($this->cURL);

Also tried adding curl_setopt($this->cURL, CURLOPT_USERAGENT,‚Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36‘);, but still the same error and this api is working well in postman