Codigo superlogica PHP integração

header('Content-Type: text/html; charset=utf-8');

$ch = curl_init();
$params = http_build_query(array("apenasColunasPrincipais" => "1",
    "status" => "1",
    "comDiaDeVencimento" => "5",
    "apenasPessoasJuridicas" => "2",
        ));
curl_setopt($ch, CURLOPT_URL, "https://api.superlogica.net/v2/financeiro/clientes?" . $params);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: text/plain;",
    "app_token: hLf7p67tA3me",
    "access_token: zD9d1Pwx9T0t",
));
$response = curl_exec($ch);
curl_close($ch);
var_dump($response);

Comentários

Postagens mais visitadas deste blog

Instalação NetBeans