+91 98305-22543      Kona Expressway, Howrah       [email protected]

Kundli Pro-cURL example

Kundli Pro-cURL example

Kundli Pro can be accessed through cURL as per example below.

<?php

$curl = curl_init();

curl_setopt_array($curl, [
	CURLOPT_URL => "https://kundli-pro.p.rapidapi.com/",
	CURLOPT_RETURNTRANSFER => true,
	CURLOPT_ENCODING => "",
	CURLOPT_MAXREDIRS => 10,
	CURLOPT_TIMEOUT => 30,
	CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
	CURLOPT_CUSTOMREQUEST => "POST",
	CURLOPT_POSTFIELDS => "birthdate=15-06-1989&birthtime=16%3A44&birthlongitude=77.7&birthlatitude=28.98&birthtimezone=5.5",
	CURLOPT_HTTPHEADER => [
		"X-RapidAPI-Host: kundli-pro.p.rapidapi.com",
		"X-RapidAPI-Key: YOUR_RAPIDAPI_KEY",
		"content-type: application/x-www-form-urlencoded"
	],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
	echo "cURL Error #:" . $err;
} else {
	echo $response;
}
Kundli Pro-cURL example

Powered by BetterDocs

Scroll to top