Lead411 APIs
API to access lead411
Send all required params mentioned below to create a free trial account.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/create_free_trial?first_name=testlive&last_name=api&company=test+name+from+api&phone=2222222222&password=123456&newsletter=yes&customer_type=general&email=test_api6@lead411.net",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
{
"status": "success",
"hash_key": "$2y$10$psRFiOHpaQyvYzmdOB/mEOClh31rbQZIxQTWUBc/KHuzN2zkoytEK",
"msg": "Free trial account has been created. Please check your inbox."
}
By Calling this API, we will validate username and password and if it passes the db authentication then API will return the access token which needs to be passed to all further subsequent API calls.
When the token expires then call 'Login and Get token' API to get a new token
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/authenticate_user?email=test_api6@lead411.net&password=123456",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send auth token along with all required params mentioned below to create a customer's sub account
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/create_free_trial?first_name=testlive&last_name=api&company=test+name+from+api&phone=2222222222&password=123456&newsletter=yes&customer_type=general&email=test_api6@lead411.net",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
{
"status": "success",
"hash_key": "$2y$10$psRFiOHpaQyvYzmdOB/mEOClh31rbQZIxQTWUBc/KHuzN2zkoytEK",
"msg": "Free trial account has been created. Please check your inbox."
}
Send access token to get all the details related to authenticated user.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/getCustomerDetails?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Add employee_id(s) or email(s) in suppression list in customer or sub-account: We can send any or both of the below mentioned parameter in request:
1) "employee_id_json" holds the collection of existing employee_id which needs to be added in suppression list. Example: ["12345" , "67890"]
2) "email_json" holds the collection of email which needs to be added in suppression list. Example: ["juan.galan@example.com" , "andrea.young@example.com"]
API accepts 50,000 employee_ids/emails in json per request which mean if there are more than 50,000 records then api will consider only first 50,000 employee_ids/emails and insert in suppression list per api call and rest will be discarded in that request.
if you want to send more than 50,000 employee_ids/emails then send more employee_id/email in next batch/api call because, as of now, there is no limitation in holding employee_ids/emails in suppression database per customer.
1) if "sub_account_email" params available in request then
employee_ids/emails present in "employee_id_json"/email_json" param will
be added to sub-account suppression list.
2) if "sub_account_email" is not available in request then
employee_ids/emails will be added to master's account suppression list
optional parameter which hold the email of sub account
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/suppression/insertSuppressionEmail?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok&email_json=%5B%22juan.galan@mobileim.com%22%5D&employee_id_json=%5B%22376%22%5D&sub_account_email=subaccount411@lead411.net",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Get Suppression list of customer or sub-account:
1) if "sub_account_email" params available in request then sub-account suppression list will be returned returned in response.
2) if "sub_account_email" is not available in request then master's account suppression list will be returned in response.
Filter : We can send any or both of the below mentioned parameter in request to filter the suppression result :
1) "employee_id_json" holds the collection of employee_ids which needs to be return in suppression list response. Example: ["12345" , "67890"]
2) "email_json" holds the collection of email which needs to return in suppression list result. Example: ["juan.galan@example.com" , "andrea.young@example.com"]
optional filter
optional filter
optional parameter which hold the email of sub account
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/suppression/getSuppressionEmails?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTY3NzAzODcsImV4cCI6MTUxNzAyOTU4NywibmJmIjoxNTE2NzcwMzg3LCJqdGkiOiJKR2xGcWc0Z1hMVzNnUnFsIn0.5qVkYundXwp8X_cBdbwBh-_Z1S2pcShv11iLXJXt5ok&email_json=%5B%22juan.galan@mobileim.com%22%5D&employee_id_json=%5B%22376%22%5D&sub_account_email=subaccount411@lead411.net",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Delete records from suppression list in customer or sub-account:
We can send any or both of the below mentioned parameter in request:
1) "employee_id_json" holds the collection of existing employee_id which needs to be added in suppression list. Example: ["12345" , "67890"]
2) "email_json" holds the collection of email which needs to be added in suppression list. Example: ["juan.galan@example.com" , "andrea.young@example.com"]
1) if "sub_account_email" params available in request then emails
present in "email_json" param will be deleted to sub-account suppression
list.
2) if "sub_account_email" is not available in request then emails will be deleted to master's account suppression list
optional
optional
[{"key":"sub_account_email","value":"subaccount411@lead411.net","equals":true,"description":"optional parameter which hold the email of sub account","enabled":true}]
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/suppression/deleteSuppressionEmail?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTYxNjczNjIsImV4cCI6MTUxNjQyNjU2MiwibmJmIjoxNTE2MTY3MzYyLCJqdGkiOiJmNzZrRmdIeUVrdUlFMkpwIn0.abDiL6i_m4qUVToopSZdDmIDXZLhkl6NrSwbMpQJcu4&email_json=%5B%22juan.galan@mobileim.com%22%5D&employee_id_json=%5B%22376%22%5D&sub_account_email=subaccount411@lead411.net",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send access token to get unlock Quota details left.
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/get_customer_quota?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send UX Element data to search the Lead11 database for company or employee records
optional, if available in request then will be used otherwise all level will be returned. where: c_level="Executive Level" , vp_level="VP Level", director_level="Director Level",manager_level="Manager Level"
optional, if available in request then sub_account suppression will be used
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k&company_ids=1743&user_search_string=cisco&search_result_filter=resultTypeAll&title_keyword=ceo&Title_array&country_code=US&State_array=&cityPostal=&range=5&Area_Codes=&Industry_Codes=&SIC_Codes=&company_description_string&news_date_from=2017-11-13&news_date_to=2017-11-13&news_category_source=¤tly_hiring_title=&hiring_date=&SoftwareHardware_array=&technology_uses_text=&FilterEmployee=all,1,2,3,4,5,6,7,8,9,10,11,12&FilterRevenue=all,1,2,3,4,5,6,7,8,9,10,11,12&email_filter=peopleResultsEmails&suppression_filter=suppressed_no&exportedResults=exported_yes&companyResults=companyResultsAll&linkedinResult=linkedin_no&has_direct_dialResults=has_direct_dial_no&since_date=&start_date=&default_sort_by=yearlyRevDesc&page=1&sub_account_email=subaccount411@lead411.net",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send UX Element data to search the Lead11 database for company or employee records
optional, if available in request then sub_account suppression will be used
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTE3ODk2MDQsImV4cCI6MTUxMjA0ODgwNCwibmJmIjoxNTExNzg5NjA0LCJqdGkiOiJuN01KbFNkOExibkVNSE1kIn0.NI-nzlzhZ4vgM-pLC23nq_Va_XJS4hYvqWBJ2S7vYLo&company_ids=1743&user_search_string=cisco&search_result_filter=resultTypeAll&title_keyword=ceo&Title_array=&country_code=US&State_array=IL,IN&cityPostal=95001,95134&range=5&Area_Codes=201&Industry_Codes=159&SIC_Codes=301,4011&company_description_string=&news_date_from=2017-11-13&news_date_to=2017-11-13&news_category_source=-1¤tly_hiring_title=ceo&hiring_date=2017-10-13&SoftwareHardware_array=62_ot&technology_uses_text=technology_uses_yes&FilterEmployee=all,1,2,3,4,5,6,7,8,9,10,11,12&FilterRevenue=all,1,2,3,4,5,6,7,8,9,10,11,12&email_filter=peopleResultsEmails&suppression_filter=suppressed_no&exportedResults=exported_yes&companyResults=companyResultsAll&linkedinResult=linkedin_no&has_direct_dialResults=has_direct_dial_no&since_date=2017-08-08&start_date=2017-11-23&default_sort_by=yearlyRevDesc&page=1&sub_account_email=subaccount411@lead411.net",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Send JSON string to search the Lead11 database for company or employee records
optional, if available in request then sub_account suppression will be used
json search string for searching data
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchUsingJSON?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cHM6Ly9hcGkubGVhZDQxMS5jb20vdjEvYXV0aGVudGljYXRlX3VzZXIiLCJpYXQiOjE1MTI0ODE4MDEsImV4cCI6MTUxMjc0MTAwMSwibmJmIjoxNTEyNDgxODAxLCJqdGkiOiIxSFZkbVJnY3hPbjU2MFQ1In0.LeDh7G38FsYXhIr2FS4I64rlfS-6d1u4GB7UOSZNk_k&sub_account_email=subaccount411@lead411.net",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => array('search_string' => '{"company_ids":"1743","US_zipcodes":"","range":"5","State_array":"",
"Technology_array":"","SoftwareHardware_array":"", "Category_array":"", "Title_array":"", "user_search_string":"cisco","SIC_Codes":"", "Area_Codes":"","Employee_Skills":"","Industry_Codes":"", "FilterRevenue":"all,1,2,3,4,5,6,7,8,9,10,11,12", "FilterEmployee":"all,1,2,3,4,5,6,7,8,9,10,11,12", "FilterLevel":"", "FilterType":"resultTypeAll,companyResultsAll,peopleVerifiedEmails,resultNormal,,,suppressed_no,,linkedin_no,,allcountries,exported_no,has_direct_dial_no,", "Press_event_data":"null#2017-11-13#2017-11-13", "company_description_string":"","title_keyword":"",
"product_keyword":"","currently_hiring_title":"","technology_uses_text":"technology_uses_yes"}'),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return all the information regarding company
required user access token
company id for which api needs to send result
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyInfo?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&company_id=1762",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This apAPIi will return all employees attached to the company for which we are sending request by providing company ID
company id for which api needs to send result
Optinal parameter, The OFFSET value allows to specify which row to start from retrieving data
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/getCompanyEmployees?company_id=1762&token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&start=0",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return employees information for which we are sending request by providing employee ID
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/employee/getEmployeeInformation?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&employee_id=8972869",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return employees information for which we are sending request by providing email address
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/employee/getEmployeeInformation?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&email=example@lead411.com",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Filter company Employee Result based on name, title, dept
required user access token
company id for which api needs to send result
optional parameter to filter the result based on first_name or last_name or title
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&company_id=1762&search_name=Patterson",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Filter company Employee Result based on Employee linked url. Example:
Filter the result based on Employee's Linkedin URL, Pass 'linkedin_url' param value in any of below format
required user access token
optional param: company id for which api needs to look for specific company's employees
Filter the result based on Employee's Linkedin URL, you can pass value as https://www.linkedin.com/in/acagnetta or linkedin.com/in/acagnetta or in/acagnetta
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M%20JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY&company_id=1762&linkedin_url=linkedin.com/in/acagnetta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Filter Employee Result based on Employee linked url. Example:
Filter the result based on Employee's Linkedin URL, Pass 'linkedin_url' param value in any of below format
required user access token
Filter the result based on Employee's Linkedin URL, you can pass value as https://www.linkedin.com/in/acagnetta or linkedin.com/in/acagnetta
optional parameter to filter the result based on company id
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjIyNDgyLCJpc3MiOiJodHRwczovL2FdswaS5sZWFkNDExLmNvbS92MS9hdXRoZW50aWNhdGVfdXNlciIsImlhdCI6M%20JuYmYiOjE1NTkxMTc1NTQsImp0aSI6IlR4a3FVZnVJRlJoRdzZDZTcifQ.DMwmzfrCRwBvS811bZmf4URiBWdiDgXr2O7MvBhUoxY&linkedin_url=linkedin.com/in/acagnetta",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Search company's cmployees based only on employee title
required user access token
company id for which api needs to send result
optional parameter to filter the result based on employee title
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/company/searchCompanyEmployees?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OT2ac5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2sdFyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&company_id=1762&search_title=ceo",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will unlock the employee and return the email and phone if available in the Lead411 DB
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/employee/unlock_employee_record?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY&employee_id=8972869",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
Logout and delete the generated token
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/logout/?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTEwOTQ2OTU1LCJleHAiOjE1MTEyMDYxNTUsIm5iZiI6MTUxMDk0Njk1NSwianRpIjoiYmluODM3eFdDaUZmdk8wUyJ9.GSZf7g0m26Mik6SnBVxPj9Qoh0nVscMI9TkTUArA_JY",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return all required elements which are required to build the Advance Popup UX
In the result, a few elements will return with the values tag having 'dynamic' value in the 'api_call' tag, which means you can get the dynamic data require to display in the dropdown by calling api url mentioned in 'api_call'
Data returned in response are used to create the Collection of HTML elements which is further used to send to Lead411 search API after filling required valid data where ever possible or required. (for search string JSON, please check search API document)
Just place the element values in search string JSON's appropriate position and hit the search API URL with filled search string JSON and the search API will validate the data and match using those filled element data within the Lead411 database and return the records matches as per filled data provided in request.
Let's first undersntand how to build the UX as follows:
This API's returned response will contains around 25 elements to build the UX and each of the element having its own essential role to get the 'company and/or people' result from Lead411 database using search API.
Lets start with basic and most important element of UX i.e. user_search_string and also we will get to know how to use this JSON snippet to build HTML element for front end:
Snipped captured from JSON response:
{
"advance_feature_popup_elements":
{
"user_search_string": {
"display_name": "Company or Person",
"input_type": "text",
"values": {
"rules": "none"
},
"default_value": "",
"maxlength": "255",
"minlength": "0"
},
As this element is 'user_search_string' and the same tag will be there in JSON search string as well, which needs to be filled in for search API request hit or can be send using form element or parameter to API request. So it's upto the user to fill the search string or send these as a parameter. Lets understand its child element tags as follows:
display_name :This repersents the label to be shown for the element or can be used for the placeholder of the element. So in this case it would be "Company or Person".
input_type: This repersents which type of the HTML element is required to build, it can be text input filed, dropdown/selectbox, radio, date, slider. Its upto the customer if they want to change it to some other element but on search string you have to fill the data which make sense as per given input type in response. In this case, it would be text inpur field.
rules: Rules mentioned here are restrictions that apply before sending or filling its input value in the search string. It can be :
none: meaning anything can be fill
1 or 2 or n : Minimum char required to fill before filling json.
Leave empty for all: meaning it will take every possible value in consideration so not required to fill out if you with to.
default_value: As name suggest , so this is default value which would be considered if you don't fill anything in JSON search string.
maxlength: maximum length of the input type.
minlength: minmum length of the input type.
As we have covered all the tags , now is the time to build the HTML element code based on these values.
<input type="text" placeholder="Company or Person" value=""/>
so this will be the result of above provided snippet
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/get_advance_popup_elements?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjgwMzgwLCJleHAiOjE1MTE1Mzk1ODAsIm5iZiI6MTUxMTI4MDM4MCwianRpIjoiUjU3RzdYaXFhRmlLbWFYaiJ9.lb4JXAPtfCA4hKyTAfFAqi8q9QxqQfxrLczSYiyVBR0",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return title to build Title Element on Advance UX popup
optional paramter to search in to title colletion
optional paramter to exlude from the title result
optional paramter to include only title matching passed ids
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchTitleData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=ceo&filterIds=300,9,40&existingIds=12,232,300",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This apAPIi will return area code to build AreaCode Element on Advance UX popup
optional paramter to search in to AreaCode colletion
optional paramter to exlude from the AreaCoderesult
optional paramter to include only search matching passed ids
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchAreaCode?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=818&existingIds=403",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return zip code to build ZipCode Element on Advance UX popup
optional paramter to search in to ZipCode colletion
optional paramter to exlude from the ZipCode result
optional paramter to include only search matching passed ids
optional paramter , default set to US
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchZipCode?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=04619&existingIds=04619&country_code=US",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return region code to build RegionCode Element on Advance UX popup
optional paramter to search in to ZipCode colletion
optional paramter to exlude from the ZipCode result
optional paramter to include only search matching passed ids
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchRegion?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=cal&filterIds=CA&existingIds=CA",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return software and hardware data to build Software/Hardware Element on Advance UX popup
optional paramter to search in to SoftwareHardware colletion
optional paramter to exlude from the SoftwareHardware result
optional paramter to include only search matching passed ids
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchSoftwareHardware?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=IT&filterIds=14807_it,21891_it&existingIds=21891_it",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return SIC code to build Search SIC Element on Advance UX popup
optional paramter to search in to SoftwareHardware colletion
optional paramter to exlude from the SoftwareHardware result
optional paramter to include only search matching passed ids
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/searchSic?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec&search_keyword=Wheat&filterIds=01110000&existingIds=0111",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return industry data to build Industry Dropdown Element on Advance UX popup
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/getIndustryData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
This API will return the News Category data to build News Category Dropdown Element on Advance UX popup
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/search/getNewsCategoryData?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM3MDQ0NCwiaXNzIjoiaHR0cDovL2FwaS5sZWFkNDExLmNvbTo4MDAwL3YxL2F1dGhlbnRpY2F0ZV91c2VyIiwiaWF0IjoxNTExMjM4NzA3LCJleHAiOjE1MTE0OTc5MDcsIm5iZiI6MTUxMTIzODcwNywianRpIjoiY1V0UWE4V2FyYzM2d3M0RiJ9.5MoiOcU3uPy_N9P0iD2RwWRd-LWiMbxxqEXW316S5Ec",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.lead411.com/v1/stripe/stripe_test?stripe_customer_id=customer%20id%20of%20user&auth_test_code=test",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => false,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
} ?>