Create a Deal with API not works

<?php` // Content of createDeal.php // Pipedrive API token $api_token ='mytoken' // Pipedrive company domain $company_domain = 'mischko'; // Deal title and Organization ID $deal = array( 'title' => 'DC test', 'org_id' => '1' ); $url = 'https://' . $company_domain . '' . $api_token; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $deal); echo 'Sending request...' . PHP_EOL; $output = curl_exec($ch); curl_close($ch); // Create an array from the data that is sent back from the API // As the original content from server is in JSON format, you need to convert it to PHP array $result = json_decode($output, true); // Check if an ID came back, if did print it out if (!empty($result['data']['id'])) { echo 'Deal was added successfully!' . PHP_EOL; } this ist my code and that not works.. i dont know why ?

Hi @mischko,

$company_domain . ‘’ . $api_token; $ch = curl_init(); curl_setopt($ch,

It looks like you’re missing a ‘.’ before