Releases: mobizon/mobizon-php
Minor release to fix constructor issue and few minor adjustments and fixes
Fixed constructor to allow different ways of calling it for old and new API users.
Removed api.mobizon.com as default value for API server. Now you should provide API server yourself in the constructor params.
Fixed links from outdated API docs to our new help center articles.
Added required PHP extensions to composer requirements.
API servers infrastructure changes
Currently we are working on upgrading our API infrastructure and version 2 of library is reflecting these changes.
Due to API servers infrastructure changes we provide new major version. Backward compatibility is OK but we change version to make sure your code is not spoiled by our changes.
We recommend to update your code to the latest version, check compatibility of constructor params and add new API server address according to the table below.
To respect our infrastructure changes you should change your API instantiation as follows:
Old constructor: $api = new Mobizon\MobizonApi('YOURAPIKEY');
New constructor: $api = new Mobizon\MobizonApi('YOURAPIKEY', 'api.mobizon.server.host');
Where api.mobizon.server.host is depending on your site of registration:
| Site | API Server | Backup API Server |
|---|---|---|
| mobizon.kz | api.mobizon.kz | api2.mobizon.kz |
| mobizon.ua | api.mobizon.ua | api2.mobizon.ua |