netipar / billingo-v3-sdk
3.0.15
2021-04-14 08:19 UTC
Requires
- php: >=5.5
- ext-curl: *
- ext-json: *
- ext-mbstring: *
- guzzlehttp/guzzle: ^6.2|^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ~1.12
- phpunit/phpunit: ^4.8
- squizlabs/php_codesniffer: ~2.6
This package is not auto-updated.
Last update: 2024-09-26 23:12:05 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/NETipar/billingo-v3-sdk.git"
}
],
"require": {
"NETipar/billingo-v3-sdk": "*@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
模型文档
- 地址
- 银行账户
- 银行账户列表
- 主体
- 主体1
- 类别
- 检查税号消息
- 客户端错误
- 客户端错误响应
- 汇率
- 国家
- 创建文档导出
- 货币
- 折扣
- 折扣类型
- 文档
- 文档祖先
- 文档银行账户
- 文档块
- 文档块列表
- 文档导出过滤额外信息
- 文档导出ID
- 文档导出其他选项
- 文档导出查询类型
- 文档导出排序
- 文档导出状态
- 文档导出状态状态
- 文档导出类型
- 文档表单
- 文档插入
- 文档插入类型
- 文档项
- 文档项数据
- 文档语言
- 文档列表
- 文档通知状态
- 组织数据
- 合作伙伴
- 文档产品数据
- 文档公开URL
- 文档设置
- 文档摘要
- 文档类型
- 文档增值税率摘要
- 权益
- 标识
- 账簿编号信息
- 修改文档插入
- 一个文档插入项
- 一个修改文档插入项
- 一个主体
- 一个主体1
- 在线支付
- 在线账单状态
- 在线账单状态消息
- 组织数据
- 合作伙伴
- 合作伙伴自定义账单设置
- 合作伙伴列表
- 合作伙伴税种
- 合作伙伴更新
- 支付历史记录
- 支付方式
- 支付状态
- 产品
- 产品列表
- 舍入
- 发送文档
- 服务器错误
- 服务器错误响应
- 支出
- 支出列表
- 支出合作伙伴
- 支出支付方式
- 支出保存
- 订阅
- 订阅错误响应
- 税号
- 请求过多响应
- 单价类型
- 验证错误
- 验证错误响应
- 增值税
授权文档
api_key
- 类型:API密钥
- API密钥参数名:X-API-KEY
- 位置:HTTP头