Reputation: 77
I am trying to access resource at this adress https://companyname.pipedrive.com/v1/deals:(id)?api_token=mytoken
. However when using guzzle I always get this exception
GuzzleHttp\Exception\ConnectException: cURL error 6: Could not resolve host: deals (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in /var/app/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 186
I think the problem is that colon in url because it works fine without It. I also tried to make the request from postman and everything works fine, so It should be problem with guzzle. Is there a way to make this work ? thanks
Upvotes: 1
Views: 845
Reputation: 5010
Have you tried to replace the colon with the URL encoded equivalent (%3A
)?
https://companyname.pipedrive.com/v1/deals%3A(id)?api_token=mytoken
Upvotes: 1