Free DND checking API
The Indian governmental agency tasked with defining various policies and regulations for wireless communication service providers in India. As per TRAI regulation, every mobile service provider in India is required to set up a Do Not Disturb (DND) registry. The official name for the registry is ‘National Do Not Call Registry’. In practice, various service providers refer to it as ‘Do not disturb registry’. The National Do Not Call Registry (NDNC) has been renamed National Customer Preference Register (NCPR). The Telemarketers after registration from TRAI get permission to access the National Customer Preference Register (NCPR).
The customer preference portal on TRAI website details the official rules regarding registry setup and the procedure for registering on the ‘do not disturb’ registry. Actual administration of the registry is NOT done by TRAI, neither via this portal nor anywhere else. The administration is left to individual service providers.
Today we will learn an API of Do Not Disturb (DND) registry with PHP. Its so simple to integrate with php.
Do Not Disturb(DND) Checker JSON API with PHP
Here you can check Indian Mobile Numbers for DND servise.
Make a get request
$url = 'http://dndchecker.railsroot.com/api?mobile_number=9323932122'; $curinit = curl_init($url); curl_setopt($curinit, CURLOPT_RETURNTRANSFER, true); $json = curl_exec($curinit); $phpObj = json_decode($json); print_R($phpObj);
Note: curl must be unable on your server.