No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
This Python package is automatically generated by the Swagger Codegen project:
- API version: 4.8
- Package version: 4.8
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com/mujeerhashmi/TraccarPythonClient.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/mujeerhashmi/TraccarPythonClient.git
)
Then import the package:
import TraccarClient
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import TraccarClient
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import TraccarClient
from TraccarClient.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: basicAuth
configuration = TraccarClient.Configuration()
configuration.username = 'YOUR_USERNAME'
configuration.password = 'YOUR_PASSWORD'
# create an instance of the API class
api_instance = TraccarClient.DefaultApi(TraccarClient.ApiClient(configuration))
all = true # bool | Can only be used by admins or managers to fetch all entities (optional)
user_id = 56 # int | Standard users can use this only with their own _userId_ (optional)
device_id = 56 # int | Standard users can use this only with _deviceId_s, they have access to (optional)
group_id = 56 # int | Standard users can use this only with _groupId_s, they have access to (optional)
refresh = true # bool | (optional)
try:
# Fetch a list of Attributes
api_response = api_instance.attributes_computed_get(all=all, user_id=user_id, device_id=device_id, group_id=group_id, refresh=refresh)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->attributes_computed_get: %s\n" % e)
All URIs are relative to https://platform.4csolutions.in/api
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | attributes_computed_get | GET /attributes/computed | Fetch a list of Attributes |
DefaultApi | attributes_computed_id_delete | DELETE /attributes/computed/{id} | Delete an Attribute |
DefaultApi | attributes_computed_id_put | PUT /attributes/computed/{id} | Update an Attribute |
DefaultApi | attributes_computed_post | POST /attributes/computed | Create an Attribute |
DefaultApi | calendars_get | GET /calendars | Fetch a list of Calendars |
DefaultApi | calendars_id_delete | DELETE /calendars/{id} | Delete a Calendar |
DefaultApi | calendars_id_put | PUT /calendars/{id} | Update a Calendar |
DefaultApi | calendars_post | POST /calendars | Create a Calendar |
DefaultApi | commands_get | GET /commands | Fetch a list of Saved Commands |
DefaultApi | commands_id_delete | DELETE /commands/{id} | Delete a Saved Command |
DefaultApi | commands_id_put | PUT /commands/{id} | Update a Saved Command |
DefaultApi | commands_post | POST /commands | Create a Saved Command |
DefaultApi | commands_send_get | GET /commands/send | Fetch a list of Saved Commands supported by Device at the moment |
DefaultApi | commands_send_post | POST /commands/send | Dispatch commands to device |
DefaultApi | commands_types_get | GET /commands/types | Fetch a list of available Commands for the Device or all possible Commands if Device ommited |
DefaultApi | devices_get | GET /devices | Fetch a list of Devices |
DefaultApi | devices_id_accumulators_put | PUT /devices/{id}/accumulators | Update total distance and hours of the Device |
DefaultApi | devices_id_delete | DELETE /devices/{id} | Delete a Device |
DefaultApi | devices_id_put | PUT /devices/{id} | Update a Device |
DefaultApi | devices_post | POST /devices | Create a Device |
DefaultApi | drivers_get | GET /drivers | Fetch a list of Drivers |
DefaultApi | drivers_id_delete | DELETE /drivers/{id} | Delete a Driver |
DefaultApi | drivers_id_put | PUT /drivers/{id} | Update a Driver |
DefaultApi | drivers_post | POST /drivers | Create a Driver |
DefaultApi | events_id_get | GET /events/{id} | |
DefaultApi | geofences_get | GET /geofences | Fetch a list of Geofences |
DefaultApi | geofences_id_delete | DELETE /geofences/{id} | Delete a Geofence |
DefaultApi | geofences_id_put | PUT /geofences/{id} | Update a Geofence |
DefaultApi | geofences_post | POST /geofences | Create a Geofence |
DefaultApi | groups_get | GET /groups | Fetch a list of Groups |
DefaultApi | groups_id_delete | DELETE /groups/{id} | Delete a Group |
DefaultApi | groups_id_put | PUT /groups/{id} | Update a Group |
DefaultApi | groups_post | POST /groups | Create a Group |
DefaultApi | maintenance_get | GET /maintenance | Fetch a list of Maintenance |
DefaultApi | maintenance_id_delete | DELETE /maintenance/{id} | Delete a Maintenance |
DefaultApi | maintenance_id_put | PUT /maintenance/{id} | Update a Maintenance |
DefaultApi | maintenance_post | POST /maintenance | Create a Maintenance |
DefaultApi | notifications_get | GET /notifications | Fetch a list of Notifications |
DefaultApi | notifications_id_delete | DELETE /notifications/{id} | Delete a Notification |
DefaultApi | notifications_id_put | PUT /notifications/{id} | Update a Notification |
DefaultApi | notifications_post | POST /notifications | Create a Notification |
DefaultApi | notifications_test_post | POST /notifications/test | Send test notification to current user via Email and SMS |
DefaultApi | notifications_types_get | GET /notifications/types | Fetch a list of available Notification types |
DefaultApi | permissions_delete | DELETE /permissions | Unlink an Object from another Object |
DefaultApi | permissions_post | POST /permissions | Link an Object to another Object |
DefaultApi | positions_get | GET /positions | Fetches a list of Positions |
DefaultApi | reports_events_get | GET /reports/events | Fetch a list of Events within the time period for the Devices or Groups |
DefaultApi | reports_route_get | GET /reports/route | Fetch a list of Positions within the time period for the Devices or Groups |
DefaultApi | reports_stops_get | GET /reports/stops | Fetch a list of ReportStops within the time period for the Devices or Groups |
DefaultApi | reports_summary_get | GET /reports/summary | Fetch a list of ReportSummary within the time period for the Devices or Groups |
DefaultApi | reports_trips_get | GET /reports/trips | Fetch a list of ReportTrips within the time period for the Devices or Groups |
DefaultApi | server_get | GET /server | Fetch Server information |
DefaultApi | server_put | PUT /server | Update Server information |
DefaultApi | session_delete | DELETE /session | Close the Session |
DefaultApi | session_get | GET /session | Fetch Session information |
DefaultApi | session_post | POST /session | Create a new Session |
DefaultApi | statistics_get | GET /statistics | Fetch server Statistics |
DefaultApi | users_get | GET /users | Fetch a list of Users |
DefaultApi | users_id_delete | DELETE /users/{id} | Delete a User |
DefaultApi | users_id_put | PUT /users/{id} | Update a User |
DefaultApi | users_post | POST /users | Create a User |
- Attribute
- Calendar
- Command
- CommandType
- Device
- DeviceAccumulators
- Driver
- Event
- Geofence
- Group
- Maintenance
- Notification
- NotificationType
- Permission
- Position
- ReportStops
- ReportSummary
- ReportTrips
- Server
- Statistics
- User
- Type: HTTP basic authentication