Download the PHP package bueffelsoft/cyclos-rest-api without Composer
On this page you can find all versions of the php package bueffelsoft/cyclos-rest-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bueffelsoft/cyclos-rest-api
More information about bueffelsoft/cyclos-rest-api
Files in bueffelsoft/cyclos-rest-api
Package cyclos-rest-api
Short Description PHP client for the Cyclos REST API
License MIT
Homepage https://github.com/bueffelSOFT/cyclos-rest-api
Informations about the package cyclos-rest-api
Cyclos REST-API Client
Use this as dependency in your project instead of writing your own client. Auto-generation via swagger codegen (currently, 2020-05-06) produces no usable result. Always use Access-Tokens instead of username//password for best security and easy blocking of individual clients!
Usage ApiWrapper
The ApiWrapper
bundles code generated by the swagger codegen to access
any API, it has no endpoint specific functions / models.
Usage of CyclosWrapper
While ApiWrapper is not specific to the Cyclos API the CyclosWrapper
is a subclass of it, implementing helper functions to access some of the
endpoints.
Create a config object as shown above and use it to create a new CyclosWrapper
.
Wrap the calls in a try-catch to check for Exceptions indicating failed
requests. If the exception is an ApiException
the server
responded with an error, see CyclosWrapper::loginUser for
example handling.
All versions of cyclos-rest-api with dependencies
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^6.5.8|^7.4.5
guzzlehttp/psr7 Version ^1.8.4|^2.1.1