可信度 / dandb
Dun & Bradstreet新兴商业API的PHP包装器
v1.0.24
2017-01-10 23:34 UTC
Requires
- php: >=5.4.0
- guzzlehttp/guzzle: ~5.0
Requires (Dev)
- mockery/mockery: dev-master
- phpunit/phpunit: 4.0.*
- satooshi/php-coveralls: 1.0.1
- dev-master
- v1.0.24
- v1.0.23
- v1.0.22
- v1.0.21
- v1.0.20
- v1.0.19
- v1.0.18
- v1.0.17
- v1.0.16
- v1.0.15
- v1.0.14
- v1.0.13
- v1.0.12
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.6
- v1.0.5
- v1.0.4
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- 0.x-dev
- v0.2.1
- v0.2.0
- v0.1.0
- dev-WAC-1030
- dev-cms
- dev-BIZDIR-142-verified
- dev-manhattan
- dev-getuserdetails
- dev-logout
- dev-update-register
- dev-add-dandb-tests
- dev-user-functions
- dev-userUsingToken
- dev-cache
- dev-dev
This package is not auto-updated.
Last update: 2024-09-28 16:15:26 UTC
README
Dun & Bradstreet新兴商业RESTful API的PHP包装器
要使用Laravel,请参阅 credibility/dandb-laravel
安装
使用composer安装
"require": {
"credibility/dandb": "dev-master"
}
使用方法
请见下方的示例初始化代码
<?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());
}
?>
注意:每个请求都有一个可选的访问令牌参数。这允许您在自己的服务器上缓存一个访问令牌,然后将其传递给每个请求。否则,DandB对象将在实际调用之前请求一个访问令牌。