yunehu / billingo-v3
Billingo API v3
3.0.13
2021-09-11 18:37 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is auto-updated.
Last update: 2024-09-12 01:40:14 UTC
README
这是Billingo API v3的文档。我们的API基于REST软件架构风格。API具有面向资源的URL,接受JSON编码的请求体,并返回JSON编码的响应。要使用此API,您必须在我们的网站上生成新的API密钥。之后,您可以在本页面上测试您的API密钥。
此PHP包由Swagger Codegen项目自动生成
- API版本:3.0.13
- 构建包:io.swagger.codegen.v3.generators.php.PhpClientCodegen 更多信息请访问 https://www.billingo.hu/kapcsolat
要求
PHP 5.5及更高版本
安装 & 使用
Composer
要通过Composer安装绑定,请将以下内容添加到composer.json
{
"repositories": [
{
"type": "git",
"url": "https://github.com/yunehu/billingo-v3.git"
}
],
"require": {
"yunehu/billingo-v3": "^3.0.13"
}
}
然后运行composer install
手动安装
下载文件并包含autoload.php
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
测试
要运行单元测试
composer install
./vendor/bin/phpunit
入门指南
请按照安装程序进行操作,然后运行以下命令
<?php require_once(__DIR__ . '/vendor/autoload.php'); // Configure API key authorization: api_key $config = Billingo\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Billingo\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Billingo\Api\BankAccountApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Billingo\Model\BankAccount(); // \Billingo\Model\BankAccount | BankAccount object that you would like to store. try { $result = $apiInstance->createBankAccount($body); print_r($result); } catch (Exception $e) { echo 'Exception when calling BankAccountApi->createBankAccount: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_key $config = Billingo\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Billingo\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Billingo\Api\BankAccountApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $id = 56; // int | try { $apiInstance->deleteBankAccount($id); } catch (Exception $e) { echo 'Exception when calling BankAccountApi->deleteBankAccount: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_key $config = Billingo\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Billingo\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Billingo\Api\BankAccountApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $id = 56; // int | try { $result = $apiInstance->getBankAccount($id); print_r($result); } catch (Exception $e) { echo 'Exception when calling BankAccountApi->getBankAccount: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_key $config = Billingo\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Billingo\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Billingo\Api\BankAccountApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $page = 56; // int | $per_page = 25; // int | try { $result = $apiInstance->listBankAccount($page, $per_page); print_r($result); } catch (Exception $e) { echo 'Exception when calling BankAccountApi->listBankAccount: ', $e->getMessage(), PHP_EOL; } // Configure API key authorization: api_key $config = Billingo\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Billingo\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Billingo\Api\BankAccountApi( // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`. // This is optional, `GuzzleHttp\Client` will be used as default. new GuzzleHttp\Client(), $config ); $body = new \Billingo\Model\BankAccount(); // \Billingo\Model\BankAccount | Bank account object that you would like to update. $id = 56; // int | try { $result = $apiInstance->updateBankAccount($body, $id); print_r($result); } catch (Exception $e) { echo 'Exception when calling BankAccountApi->updateBankAccount: ', $e->getMessage(), PHP_EOL; } ?>
API端点文档
所有URI均相对于https://api.billingo.hu/v3
模型文档
- 地址
- 银行账户
- 银行账户列表
- 类别
- 检查税务编号消息
- 客户端错误
- 客户端错误响应
- 汇率
- 国家
- 创建文档导出
- 货币
- 折扣
- 折扣类型
- 文档
- 文档祖先
- 文档银行账户
- 文档块
- 文档块列表
- 文档导出过滤额外信息
- 文档导出ID
- 文档导出其他选项
- 文档导出查询类型
- 文档导出排序
- 文档导出状态
- 文档导出状态状态
- 文档导出类型
- 文档表单
- 文档插入
- 文档插入类型
- 文档项
- 文档项数据
- 文档语言
- 文档列表
- 文档通知状态
- 文档组织
- 文档合作伙伴
- 文档产品数据
- 文档公开URL
- 文档设置
- 文档摘要
- 文档类型
- 文档增值税率摘要
- 许可
- ID
- 账簿编号信息
- 修改文档插入
- 一个文档插入项
- 修改文档插入项
- 合作伙伴体
- 合作伙伴ID体
- 在线支付
- 在线发票状态
- 在线发票状态消息
- 组织数据
- 合作伙伴
- 合作伙伴自定义计费设置
- 合作伙伴列表
- 合作伙伴税务类型
- 合作伙伴更新
- 合作伙伴体
- 合作伙伴ID体
- 支付历史
- 支付方式
- 支付状态
- 产品
- 产品列表
- 舍入
- 发送文档
- 服务器错误
- 服务器错误响应
- 支出
- 支出列表
- 支出合作伙伴
- 支出支付方式
- 支出保存
- 订阅
- 订阅错误响应
- 税务编号
- 请求过多响应
- 单价类型
- 验证错误
- 验证错误响应
- 增值税
授权文档
api_key
- 类型:API密钥
- API密钥参数名称:X-API-KEY
- 位置:HTTP头