Download the PHP package luminjo/php-sdk without Composer
On this page you can find all versions of the php package luminjo/php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-sdk
Luminjo PHP SDK
PHP SDK for https://fr.luminjo.com
Install
A stable version will eventually be released one day...
Create a client
Usage
-
Verify that you are able to make API requests
-
Create a ticket
- find tickets
You wille receive an array response :
- get faq (behavior is the same as on the website : index get highlited questions)
Response :
- Faq categories
Response :
Ticket types
Tickets can be more than simple tickets, for example when you get a customer call. Remember, only tickets type 1 should be visible for a customer, other types are hidden.
- ticket: 1
- call: 2
- meet: 3
- other: 4
Error handling
Every API call must be try catched to handle client errors. The LuminjoException contain the response, the error code and a message. The message is for the developper, the code can help you to show a proper error message to the end user.
Codes
- 1: Rate limit exceeded. You are doing too many requests, you should wait 60 secondes before the next.
- 2: Not allowed. Your current plan doesn't allow you to use the API.
- 3: Authentification failed. The API keys are probably wrong.
Keep in mind that codes can be added in the future.
Limits
Current limitation is 60 requests per minutes.
All versions of php-sdk with dependencies
awelty/security Version dev-master
php Version >=5.4.0
symfony/options-resolver Version ^3.2|^4.0