makkmarci13 / billingo-api-v3
3.0.14
2023-09-28 20:14 UTC
Requires
- php: ^7.4 || ^8.0
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^7.3
- guzzlehttp/psr7: ^1.7 || ^2.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.5
- phpunit/phpunit: ^8.0 || ^9.0
This package is not auto-updated.
Last update: 2024-09-28 00:11:20 UTC
README
这是Billingo API v3文档。我们的API基于REST软件架构风格。API具有资源导向的URL,接受JSON编码的请求体,并返回JSON编码的响应。要使用此API,您必须在我们的网站上生成一个新的API密钥。之后,您可以在本页面上测试您的API密钥。
此PHP包由Swagger Codegen项目自动生成
- API版本:3.0.14
- 构建包: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/git_user_id/git_repo_id.git"
}
],
"require": {
"git_user_id/git_repo_id": "*@dev"
}
}
然后运行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 = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Swagger\Client\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 \Swagger\Client\Model\BankAccount(); // \Swagger\Client\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 = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Swagger\Client\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 = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Swagger\Client\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 = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Swagger\Client\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 = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed // $config = Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); $apiInstance = new Swagger\Client\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 \Swagger\Client\Model\BankAccount(); // \Swagger\Client\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
- 文档设置
- 文档摘要
- 文档类型
- 文档增值税率摘要
- 权益
- 功能
- 标识符
- 发票设置
- 账簿编号信息
- 修改文档插入
- 一个文档插入项目
- 一个修改文档插入项目
- 一个收据插入项目
- 在线支付
- 在线Szamla状态
- 在线Szamla状态枚举
- 在线Szamla状态消息
- 组织数据
- 合作伙伴
- 合作伙伴自定义计费设置
- 合作伙伴列表
- 合作伙伴税种
- 支付历史记录
- 支付方式
- 支付状态
- 支付状态支出
- 产品
- 产品列表
- 收据插入
- 收据项目数据
- 收据产品数据
- 舍入
- 发送文档
- 服务器错误
- 服务器错误响应
- 服务器时间
- 源代码
- 支出
- 支出列表
- 支出条目
- 支出合作伙伴
- 支出支付方式
- 支出保存
- 订阅
- 订阅错误响应
- 税号
- 请求过多响应
- 单位价格类型
- 验证错误
- 验证错误响应
- 增值税
授权文档
api_key
- 类型:API密钥
- API密钥参数名称:X-API-KEY
- 位置:HTTP头