credibility/dandb
Composer 安装命令:
composer require credibility/dandb
包简介
PHP Wrapper for Dun & Bradstreet Emerging Business API
README 文档
README
PHP Wrapper for the Dun & Bradstreet Emerging Business RESTful API
To use with Laravel, see credibility/dandb-laravel
Installation
Install using composer:
"require": {
"credibility/dandb": "dev-master"
}
Usage
See below for sample initialization code:
<?php
include_once 'vendor/autoload.php';
// 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());
}
?>
Note: each request has an optional access token parameter. This allows you to cache an access token on your own and then pass it into each request. Otherwise the DandB object will make a request to get an access token before the actual call.
统计信息
- 总下载量: 18.67k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-10