billdu/api-client 问题修复 & 功能扩展

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

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

billdu/api-client

Composer 安装命令:

composer require billdu/api-client

包简介

API client for billdu.com, minifaktura.sk, minifaktura.cz, minirechnung.at, minirechnung.de

README 文档

README

API client for billdu.com, minifaktura.sk, minifaktura.cz, minirechnung.at and minirechnung.de

stability: dev

installation

composer require billdu/api-client:dev-master

or require loader.php from package root directory

usage

first we need to initialize the client like this

$client = iInvoices\Api\ApiClient(http://api.billdu.com, $publicKey, $privateKey);

the client has 4 available resources: Clients, Products, Orders, Invoices you can acces them like this

$client->clients;
$client->products;
$client->orders;
$client->invoices;

all have these methods

public function listAll();
public function get($id);
public function create($data);
public function update($id, $data);
public function delete($id);

invoices and order have these extra methods

public function download($id);
public function send($id, $data);
public function getDownloadLink($id);

send method is used like this:

$data = [
    	'subject' => 'invoice',
    	'message' => 'hi, please pay',
    	'recipients' => [
    		'email@example.com'
    	]
    ];

	$clienti->invoices->send($id, $data);

统计信息

  • 总下载量: 6.39k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 4
  • Forks: 4
  • 开发语言: API Blueprint

其他信息

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