-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
6 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,66 +11,18 @@ For more information, please visit [https://www.billingo.hu/kapcsolat](https://w | |
PHP 7.4 and later. | ||
Should also work with PHP 8.0. | ||
|
||
### Composer | ||
|
||
To install the bindings via [Composer](https://getcomposer.org/), add the following to `composer.json`: | ||
|
||
```json | ||
{ | ||
"repositories": [ | ||
{ | ||
"type": "vcs", | ||
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git" | ||
} | ||
], | ||
"require": { | ||
"GIT_USER_ID/GIT_REPO_ID": "*@dev" | ||
} | ||
} | ||
``` | ||
|
||
Then run `composer install` | ||
|
||
### Manual Installation | ||
|
||
Download the files and include `autoload.php`: | ||
|
||
```php | ||
<?php | ||
require_once('/path/to/OpenAPIClient-php/vendor/autoload.php'); | ||
``` | ||
|
||
## Getting Started | ||
|
||
Please follow the [installation procedure](#installation--usage) and then run the following: | ||
|
||
```php | ||
<?php | ||
require_once(__DIR__ . '/vendor/autoload.php'); | ||
|
||
|
||
|
||
// Configure API key authorization: api_key | ||
$config = Cone\Billingo\Configuration::getDefaultConfiguration()->setApiKey('X-API-KEY', 'YOUR_API_KEY'); | ||
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed | ||
// $config = Cone\Billingo\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-API-KEY', 'Bearer'); | ||
$client = new Cone\Billing\Billingo('API_KEY'); | ||
|
||
// Config | ||
$client->config(); | ||
|
||
$apiInstance = new Cone\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 | ||
); | ||
$bank_account = new \Cone\Billingo\Model\BankAccount(); // \Cone\Billingo\Model\BankAccount | BankAccount object that you would like to store. | ||
|
||
try { | ||
$result = $apiInstance->createBankAccount($bank_account); | ||
print_r($result); | ||
} catch (Exception $e) { | ||
echo 'Exception when calling BankAccountApi->createBankAccount: ', $e->getMessage(), PHP_EOL; | ||
} | ||
// Bank accounts | ||
$client->bankAccounts(); | ||
|
||
//... | ||
``` | ||
|
||
## API Endpoints | ||
|
@@ -235,33 +187,3 @@ Class | Method | HTTP request | Description | |
- [ValidationError](docs/Model/ValidationError.md) | ||
- [ValidationErrorResponse](docs/Model/ValidationErrorResponse.md) | ||
- [Vat](docs/Model/Vat.md) | ||
|
||
## Authorization | ||
|
||
Authentication schemes defined for the API: | ||
### api_key | ||
|
||
- **Type**: API key | ||
- **API key parameter name**: X-API-KEY | ||
- **Location**: HTTP header | ||
|
||
|
||
## Tests | ||
|
||
To run the tests, use: | ||
|
||
```bash | ||
composer install | ||
vendor/bin/phpunit | ||
``` | ||
|
||
## Author | ||
|
||
[email protected] | ||
|
||
## About this package | ||
|
||
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: | ||
|
||
- API version: `3.0.15` | ||
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen` |