Bladephp: Now with 8+ codeigniter, php, and laravel project 8+ php project From $37/Month From Rs. 2499/Month

Lusha API using PHP curl

by
Category:php
php mysql
Lusha API using PHP curl

The Lusha API returns data of business profiles. It can access a user's phone, email, and location. It is available in REST architecture with API Key by request using PHP curl.

Example

<?php
	$url = 'https://api.lusha.co/person?firstName=?&lastName=?&company=?';
	$ch = curl_init();
	curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($ch, CURLOPT_HTTPHEADER, array("api_key: ? "));
	curl_setopt($ch, CURLOPT_URL, $url);
		
	$result = curl_exec($ch);
	$json = json_decode($result, true); 
	$temperatureMin = $json['data'];
	echo "<pre>";
	print_r($temperatureMin['emailAddresses'][0]['email']);
?>

0 Comments


Html code work in comment box


Related Post