PHP code example of credibility / dandb
1. Go to this page and download the library: Download credibility/dandb library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
credibility / dandb example snippets
// See Doc Comments for parameters
$dandb = DandB::getInstance('https://api.dandb.com', 'client-id', 'client-secret', array());
//From here, you can use the $dandb object to make requests. See PHP Doc comments in the class for info on how to use.
$response = $dandb->businessSearchByDuns('123456789');
if($response->isValid()) {
print_r($response->getResponseData());
} else {
print_r($response->getErrors());
}