Session cookie is the only authorization option for the WebSocket connection. Endpoint for the WebSocket connection: /api/socket In addition to the REST API, we provide an access to a WebSocket endpoint for live updates. To create a session use token query parameter in session get request: /api/session?token=USER_TOKEN WebSocket API A token can be generated from the web app or via an API call. Using session cookies (see session endpoint)Īs an alternative to the email and password login, there is an option to use an account token for authorization.There are several user authorization options: This is a PHP class developed to interface with Traccars APIIf you have a Traccar Instance and would like to have Native PHP based access to the APIs you can use this project.This project will always remain free. Detailed documentation can be found in the API Reference or the OpenAPI spec file. If you are considering donating to this project, I would like to thank you for the support.Traccar provides an API to access all service functionality. If you would like to contribute towards the improvement of this proejct, please do contact me or post a request under issues. commandsTypes (list of all available commands for the device).reportEventsType (specific event type report).Extract the archive file on your machine that you’ve downloaded from CampCodes. reportChart (same as route report, but can be modified for specifics in future) How to Install Fleet Management System with Live GPS Tracking.position (display a single position based in positionId).Podemos encontrar varias en internet, unas de pago como las que nos ofrece el propio fabricante y alguna totalmente gratuita como la que hemos elegido: Traccar. positions (display recent positions of all devices under the logged in user) Estos localizadores GPRS pueden transmitir sus datos de posicin hacia plataformas especficamente diseadas para ello.removeDeviceNotification (remove a notification from device).assignDeviceNotification (assign a notification to device).removeDeviceGeofence (remove a geofence assignment from device).assignDeviceGeofence (assign a geofence to a device).removeUserDevice (remove a device from a user account).assignUserDevice (assing a device to a user account).notificationDelete (delete notification).notificationUpdate (update notification).notificationAdd (create notification for user).notifications (list all users enabled notifications).notificationsTypes (list all notifications types available).geofences (list all geofences under the currently logged in user).devices (list all devices under the currently logged in user).As required by default, our composer.json utilizes the require key to specify the Ratchet package in our project. This namespace will be used in subsequent steps to include our project classes.
0 Comments
Leave a Reply. |