PHPackages                             bajzany/api-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. bajzany/api-client

ActiveExtensions[API Development](/categories/api)

bajzany/api-client
==================

Api client for Nette Framework

v1.0.6(6y ago)01.5kPHPPHP ^7.2

Since Aug 19Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bajzany/api-client)[ Packagist](https://packagist.org/packages/bajzany/api-client)[ Docs](https://github.com/bajzany/api-client)[ RSS](/packages/bajzany-api-client/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (7)Dependencies (3)Versions (7)Used By (0)

API client
----------

[](#api-client)

#### Instalation

[](#instalation)

- Composer instalation

```
composer require bajzany/api-client dev-master
```

- Register into Nette Application

```
extensions:
	ApiClientExtension: Bajzany\ApiClient\DI\ApiClientExtension

ApiClientExtension:
	verify: TRUE
	stream: TRUE
	connect_timeout: 20
	read_timeout: 20
	timeout: 20
```

- verify = enable validate certificate
- connect\_timeout = Float describing the number of seconds to wait while trying to connect to a server. Use 0 to wait indefinitely (the default behavior).
- timeout = Timeout if a server does not return a response
- read\_timeout = The timeout applies to individual read operations on a streamed body (when the stream option is enabled).

#### How to use

[](#how-to-use)

- first create api request action class witch extended `Bajzany\ApiClient\Model\EndPoint` like `Bajzany\ApiClient\Example\UpdateUserApi`

    ```
