I have a token for a specific ID number which is 494
$url = api.pipedrive.com/v1/deals/494/products?start=0&api_token=7ecb71622dadd2faae2732bfe73b09381150c967;
I want to change the number 494 to any number.
I've made an illogical code to begin with.
Any guide on how to do this?
$url = "https://api.pipedrive.com/v1/deals/";
$id = 494;
$api = "/products?start=0&api_token=7ecb71622dadd2faae2732bfe73b09381150c967";
$response = file_get_contents($url+$id+$api);
echo $response;
$object = json_decode($response, true);
I got the errorL
Warning: file_get_contents(494): failed to open stream: No such file or directory
+isn't used for concatenation in PHP.