credibility/dandb 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

credibility/dandb

Composer 安装命令:

composer require credibility/dandb

包简介

PHP Wrapper for Dun & Bradstreet Emerging Business API

README 文档

README

Build Status Coverage Status Packagist

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

GitHub 信息

  • Stars: 2
  • Watchers: 8
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-10-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固