Hi, I am trying to connect the bubble api connector to Kartra. The documentation for Kartra shows as sample in PHP as shown below. Would anyone know how to create this in the API connector? No matter what I try I get an error. I don’t know php (below) so i’m at a bit of a loss. Thanks in advance
curl_setopt($ch, CURLOPT_URL,"https://app.kartra.com/api");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
http_build_query(
array(
'app_id' => 'AIm863DwsOW',
'api_key' => 'QG9GPLW8G',
'api_password' => 'kdwFAfwrfVS',
'lead' => array(
'id' => '3232323223', //you may pass either ID or EMAIL. If both, the system will pick ID
'email' => '[email protected]',
),
'actions' => array(
'0' => array(
'cmd' => 'search_lead',
),
)
)
)