No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 2019-12-12
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git
)
Then import the package:
import samsara
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 samsara
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import samsara
from samsara.rest import ApiException
from pprint import pprint
# Defining host is optional and default to https://api.samsara.com
configuration.host = "https://api.samsara.com"
# Enter a context with an instance of the API client
with samsara.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = samsara.SamsaraApi(api_client)
address = samsara.CreateAddressRequest() # CreateAddressRequest | The address to create.
try:
# Create an address
api_response = api_instance.create_address(address)
pprint(api_response)
except ApiException as e:
print("Exception when calling SamsaraApi->create_address: %s\n" % e)
All URIs are relative to https://api.samsara.com
Class | Method | HTTP request | Description |
---|---|---|---|
SamsaraApi | create_address | POST /addresses | Create an address |
SamsaraApi | create_carrier_proposed_assignment | POST /fleet/carrier-proposed-assignments | Create an assignment |
SamsaraApi | create_contact | POST /contacts | Create a contact |
SamsaraApi | create_driver | POST /fleet/drivers | Create a driver |
SamsaraApi | create_dvir | POST /fleet/dvirs | Create a mechanic DVIR |
SamsaraApi | create_tag | POST /tags | Create a tag |
SamsaraApi | create_user | POST /users | Create a user |
SamsaraApi | delete_address | DELETE /addresses/{id} | Delete an address |
SamsaraApi | delete_carrier_proposed_assignment | DELETE /fleet/carrier-proposed-assignments/{id} | Delete an assignment |
SamsaraApi | delete_contact | DELETE /contacts/{id} | Delete a contact |
SamsaraApi | delete_tag | DELETE /tags/{id} | Delete a tag |
SamsaraApi | delete_user | DELETE /users/{id} | Delete a user |
SamsaraApi | get_address | GET /addresses/{id} | Retrieve an address |
SamsaraApi | get_contact | GET /contacts/{id} | Retrieve a contact |
SamsaraApi | get_driver | GET /fleet/drivers/{id} | Retrieve a driver |
SamsaraApi | get_driver_tachograph_activity | GET /fleet/drivers/tachograph-activity/history | Get driver tachograph activity |
SamsaraApi | get_dvir_defects | GET /fleet/defects/history | Get all defects |
SamsaraApi | get_dvir_history | GET /fleet/dvirs/history | Get all DVIRs |
SamsaraApi | get_equipment | GET /fleet/equipment/{id} | Retrieve a unit of equipment |
SamsaraApi | get_equipment_locations | GET /fleet/equipment/locations | Get most recent locations for all equipment |
SamsaraApi | get_equipment_locations_feed | GET /fleet/equipment/locations/feed | Follow feed of equipment locations |
SamsaraApi | get_equipment_locations_history | GET /fleet/equipment/locations/history | Get historical equipment locations |
SamsaraApi | get_equipment_stats | GET /fleet/equipment/stats | Get most recent stats for all equipment |
SamsaraApi | get_equipment_stats_feed | GET /fleet/equipment/stats/feed | Follow a feed of equipment stats |
SamsaraApi | get_equipment_stats_history | GET /fleet/equipment/stats/history | Get historical equipment stats |
SamsaraApi | get_tag | GET /tags/{id} | Retrieve a tag |
SamsaraApi | get_user | GET /users/{id} | Retrieve a user |
SamsaraApi | get_vehicle | GET /fleet/vehicles/{id} | Retrieve a vehicle |
SamsaraApi | get_vehicle_locations | GET /fleet/vehicles/locations | Get most recent vehicle locations |
SamsaraApi | get_vehicle_locations_feed | GET /fleet/vehicles/locations/feed | Follow a feed of vehicle locations |
SamsaraApi | get_vehicle_locations_history | GET /fleet/vehicles/locations/history | Get historical vehicle locations |
SamsaraApi | get_vehicle_stats | GET /fleet/vehicles/stats | List most recent vehicle stats |
SamsaraApi | get_vehicle_stats_feed | GET /fleet/vehicles/stats/feed | Follow a feed of vehicle stats |
SamsaraApi | get_vehicle_stats_history | GET /fleet/vehicles/stats/history | Get historical vehicle stats |
SamsaraApi | list_addresses | GET /addresses | List all addresses |
SamsaraApi | list_carrier_proposed_assignments | GET /fleet/carrier-proposed-assignments | Retrieve assignments |
SamsaraApi | list_contacts | GET /contacts | List all contacts |
SamsaraApi | list_drivers | GET /fleet/drivers | List all drivers |
SamsaraApi | list_equipment | GET /fleet/equipment | List all equipment |
SamsaraApi | list_tags | GET /tags | List all tags |
SamsaraApi | list_user_roles | GET /user-roles | List all user roles |
SamsaraApi | list_users | GET /users | List all users |
SamsaraApi | list_vehicles | GET /fleet/vehicles | List all vehicles |
SamsaraApi | patch_tag | PATCH /tags/{id} | Update a tag |
SamsaraApi | replace_tag | PUT /tags/{id} | Update a tag |
SamsaraApi | update_address | PATCH /addresses/{id} | Update an address |
SamsaraApi | update_contact | PATCH /contacts/{id} | Update a contact |
SamsaraApi | update_driver | PATCH /fleet/drivers/{id} | Update a driver |
SamsaraApi | update_dvir | PATCH /fleet/dvirs/{id} | Resolve a DVIR |
SamsaraApi | update_dvir_defect | PATCH /fleet/defects/{id} | Update a defect |
SamsaraApi | update_user | PATCH /users/{id} | Update a user |
SamsaraApi | update_vehicle | PATCH /fleet/vehicles/{id} | Update a vehicle |
- Address
- AddressExternalIds
- AddressGeofence
- AddressGeofenceCircle
- AddressGeofencePolygon
- AddressGeofencePolygonVertices
- AddressResponse
- CarrierProposedAssignment
- CarrierProposedAssignmentDriver
- CarrierProposedAssignmentResponse
- CarrierProposedAssignmentVehicle
- Contact
- ContactResponse
- ContactTinyResponse
- CreateAddressRequest
- CreateCarrierProposedAssignmentRequest
- CreateContactRequest
- CreateDriverRequest
- CreateDvirRequest
- CreateTagRequest
- CreateUserRequest
- Defect
- DefectPatch
- DefectResolvedBy
- DefectResponse
- DefectsResponse
- Driver
- DriverActivationStatus
- DriverCarrierSettings
- DriverExternalIds
- DriverLocale
- DriverResponse
- DriverStaticAssignedVehicle
- DriverTachographActivityResponse
- DriverTinyResponse
- DriverVehicleGroupTag
- Dvir
- DvirAuthorSignature
- DvirResponse
- DvirSecondSignature
- DvirSignature
- DvirThirdSignature
- DvirTrailer
- DvirTrailerDefectsItems
- DvirVehicle
- DvirsListResponse
- Equipment
- EquipmentEngineRpm
- EquipmentEngineSeconds
- EquipmentEngineState
- EquipmentFuelPercent
- EquipmentGatewayEngineSeconds
- EquipmentGatewayEngineState
- EquipmentGpsOdometerMeters
- EquipmentListResponse
- EquipmentLocation
- EquipmentLocationsListResponse
- EquipmentLocationsListResponseData
- EquipmentLocationsResponse
- EquipmentLocationsResponseData
- EquipmentObdEngineSeconds
- EquipmentObdEngineState
- EquipmentResponse
- EquipmentStatsListResponse
- EquipmentStatsListResponseData
- EquipmentStatsResponse
- EquipmentStatsResponseData
- ListAddressesResponse
- ListCarrierProposedAssignmentResponse
- ListContactsResponse
- ListDriversResponse
- ListTagsResponse
- ListUserRolesResponse
- ListUsersResponse
- ListVehiclesResponse
- PaginationResponse
- ParentTag
- PatchTagRequest
- ReplaceTagRequest
- ResolvedBy
- StandardErrorResponse
- TachographActivity
- TachographActivityListWrapper
- Tag
- TagAllOf
- TagResponse
- TagTinyResponse
- TaggedObject
- TinyTag
- TrailerNameOnlyResponse
- TrailerTinyResponse
- UpdateAddressRequest
- UpdateContactRequest
- UpdateDriverRequest
- UpdateDvirRequest
- UpdateUserRequest
- UpdateVehicleRequest
- User
- UserAuthType
- UserResponse
- UserRole
- UserRoleAssignment
- UserRoleAssignmentRequest
- UserTinyResponse
- Vehicle
- VehicleAuxInputType
- VehicleAuxInputType1
- VehicleAuxInputType2
- VehicleExternalIds
- VehicleHarshAccelerationSettingType
- VehicleLocation
- VehicleLocationReverseGeo
- VehicleLocationTime
- VehicleLocationsListResponse
- VehicleLocationsListResponseData
- VehicleLocationsResponse
- VehicleLocationsResponseData
- VehicleResponse
- VehicleStaticAssignedDriver
- VehicleStatsAuxInput
- VehicleStatsBatteryVoltage
- VehicleStatsEngineState
- VehicleStatsFaultCodes
- VehicleStatsFaultCodesIgnitionType
- VehicleStatsFaultCodesJ1939
- VehicleStatsFaultCodesJ1939Lights
- VehicleStatsFaultCodesJ1939TroubleCode
- VehicleStatsFaultCodesOBDII
- VehicleStatsFaultCodesOBDIITroubleCode
- VehicleStatsFaultCodesPassengerDtc
- VehicleStatsFaultCodesPassengerMonitorStatus
- VehicleStatsFaultCodesPassengerMonitorStatusValue
- VehicleStatsFuelPercent
- VehicleStatsGpsDistanceMeters
- VehicleStatsGpsOdometerMeters
- VehicleStatsListResponse
- VehicleStatsListResponseData
- VehicleStatsListResponseFaultCodes
- VehicleStatsListResponseJ1939
- VehicleStatsListResponseJ1939CheckEngineLights
- VehicleStatsListResponseJ1939DiagnosticTroubleCodes
- VehicleStatsListResponseObdii
- VehicleStatsListResponseObdiiConfirmedDtcs
- VehicleStatsListResponseObdiiDiagnosticTroubleCodes
- VehicleStatsListResponseObdiiMonitorStatus
- VehicleStatsObdEngineSeconds
- VehicleStatsObdOdometerMeters
- VehicleStatsResponse
- VehicleStatsResponseData
- VehicleStatsTime
- VehicleStatsTirePressure
- VehicleStatsTirePressures
- VehicleTinyResponse
All endpoints do not require authorization.