Use the get method with the track code to return events json.
GET-> http://localhost/api/v1/get_track/LB084562135HK
Return-> { "0": { "date": "04/01/2021", "hour": "13:03", "location": "ARAUCARIA/PR", "action": "Objeto entregue ao destinatário", "message": "Objeto entregue ao destinatário ", "change": "há 14 dias" }, "1": { "date": "04/01/2021", "hour": "09:23", "location": "ARAUCARIA/PR", "action": "Objeto saiu para entrega ao destinatário", "message": "Objeto saiu para entrega ao destinatário ", "change": "há 14 dias" } }
Used:
Laravel Lumen is a stunningly fast PHP micro-framework for building web applications with expressive, elegant syntax. We believe development must be an enjoyable, creative experience to be truly fulfilling. Lumen attempts to take the pain out of development by easing common tasks used in the majority of web projects, such as routing, database abstraction, queueing, and caching.
Documentation for the framework can be found on the Lumen website.
Thank you for considering contributing to Lumen! The contribution guide can be found in the Laravel documentation.
If you discover a security vulnerability within Lumen, please send an e-mail to Taylor Otwell at [email protected]. All security vulnerabilities will be promptly addressed.
The Lumen framework is open-sourced software licensed under the MIT license.