Skip to content

siilats/traccar-php

Repository files navigation

SwaggerClient-php

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: 3.16
  • Build package: io.swagger.codegen.languages.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
  "repositories": [
    {
      "type": "git",
      "url": "https://github.com/siilats/traccar-php.git"
    }
  ],
  "require": {
    "siilats/traccar-php": "*@dev"
  }
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

    require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: basicAuth
$config = Swagger\Client\Configuration::getDefaultConfiguration()
    ->setUsername('YOUR_USERNAME')
    ->setPassword('YOUR_PASSWORD');

$apiInstance = new Swagger\Client\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$all = true; // bool | Can only be used by admins or managers to fetch all entities
$user_id = 56; // int | Standard users can use this only with their own _userId_
$device_id = 56; // int | Standard users can use this only with _deviceId_s, they have access to
$group_id = 56; // int | Standard users can use this only with _groupId_s, they have access to
$refresh = true; // bool | 

try {
    $result = $apiInstance->attributesComputedGet($all, $user_id, $device_id, $group_id, $refresh);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->attributesComputedGet: ', $e->getMessage(), PHP_EOL;
}

?>

Documentation for API Endpoints

All URIs are relative to https://www.bolt.miami/gps/api

Class Method HTTP request Description
DefaultApi attributesComputedGet GET /attributes/computed Fetch a list of Attributes
DefaultApi attributesComputedIdDelete DELETE /attributes/computed/{id} Delete an Attribute
DefaultApi attributesComputedIdPut PUT /attributes/computed/{id} Update an Attribute
DefaultApi attributesComputedPost POST /attributes/computed Create an Attribute
DefaultApi calendarsGet GET /calendars Fetch a list of Calendars
DefaultApi calendarsIdDelete DELETE /calendars/{id} Delete a Calendar
DefaultApi calendarsIdPut PUT /calendars/{id} Update a Calendar
DefaultApi calendarsPost POST /calendars Create a Calendar
DefaultApi commandsGet GET /commands Fetch a list of Saved Commands
DefaultApi commandsIdDelete DELETE /commands/{id} Delete a Saved Command
DefaultApi commandsIdPut PUT /commands/{id} Update a Saved Command
DefaultApi commandsPost POST /commands Create a Saved Command
DefaultApi commandsSendGet GET /commands/send Fetch a list of Saved Commands supported by Device at the moment
DefaultApi commandsSendPost POST /commands/send Dispatch commands to device
DefaultApi commandsTypesGet GET /commands/types Fetch a list of available Commands for the Device or all possible Commands if Device ommited
DefaultApi devicesGet GET /devices Fetch a list of Devices
DefaultApi devicesIdDelete DELETE /devices/{id} Delete a Device
DefaultApi devicesIdDistancePut PUT /devices/{id}/distance Update the distance counter of the Device
DefaultApi devicesIdPut PUT /devices/{id} Update a Device
DefaultApi devicesNearestGet GET /devices/nearest Searches for nearest Device
DefaultApi devicesPost POST /devices Create a Device
DefaultApi devicesRefreshGet GET /devices/refresh Refreshes device online status
DefaultApi driversGet GET /drivers Fetch a list of Drivers
DefaultApi driversIdDelete DELETE /drivers/{id} Delete a Driver
DefaultApi driversIdPut PUT /drivers/{id} Update a Driver
DefaultApi driversPost POST /drivers Create a Driver
DefaultApi eventsIdGet GET /events/{id}
DefaultApi geofencesGet GET /geofences Fetch a list of Geofences
DefaultApi geofencesIdDelete DELETE /geofences/{id} Delete a Geofence
DefaultApi geofencesIdPut PUT /geofences/{id} Update a Geofence
DefaultApi geofencesPost POST /geofences Create a Geofence
DefaultApi groupsGet GET /groups Fetch a list of Groups
DefaultApi groupsIdDelete DELETE /groups/{id} Delete a Group
DefaultApi groupsIdPut PUT /groups/{id} Update a Group
DefaultApi groupsPost POST /groups Create a Group
DefaultApi notificationsGet GET /notifications Fetch a list of Notifications
DefaultApi notificationsIdDelete DELETE /notifications/{id} Delete a Notification
DefaultApi notificationsIdPut PUT /notifications/{id} Update a Notification
DefaultApi notificationsPost POST /notifications Create a Notification
DefaultApi notificationsTestPost POST /notifications/test Send test notification to current user via Email and SMS
DefaultApi notificationsTypesGet GET /notifications/types Fetch a list of available Notification types
DefaultApi paymentDepositPost POST /payment/deposit Create deposit for a user
DefaultApi paymentRentPost POST /payment/rent Create rent for a user
DefaultApi paymentReturnPost POST /payment/return Create return for a user
DefaultApi permissionsDelete DELETE /permissions Unlink an Object from another Object
DefaultApi permissionsPost POST /permissions Link an Object to another Object
DefaultApi positionsGet GET /positions Fetches a list of Positions
DefaultApi reportsDeviceRouteGet GET /reports/deviceRoute Fetch a list of Positions within between start and end points
DefaultApi reportsDisputeGet GET /reports/dispute Fetch a list of Positions within the time period for the Devices or Groups and Users to compare
DefaultApi reportsEventsGet GET /reports/events Fetch a list of Events within the time period for the Devices or Groups
DefaultApi reportsRouteGet GET /reports/route Fetch a list of Positions within the time period for the Devices or Groups
DefaultApi reportsStopsGet GET /reports/stops Fetch a list of ReportStops within the time period for the Devices or Groups
DefaultApi reportsSummaryGet GET /reports/summary Fetch a list of ReportSummary within the time period for the Devices or Groups
DefaultApi reportsTripsGet GET /reports/trips Fetch a list of ReportTrips within the time period for the Devices or Groups
DefaultApi serverGet GET /server Fetch Server information
DefaultApi serverPut PUT /server Update Server information
DefaultApi sessionDelete DELETE /session Close the Session
DefaultApi sessionGet GET /session Fetch Session information
DefaultApi sessionLoginPost POST /session/login Use admin token to log in a user without traccartoken. This deletes the anonymous user that has the token and puts the token into the user w email
DefaultApi sessionLogoutPost POST /session/logout logout user create anon user
DefaultApi sessionPost POST /session Create a new Session
DefaultApi sessionRegisterGet GET /session/register Either logs in or creates anonymous user. Sets geofence id if provided.
DefaultApi sessionUserdevicePost POST /session/userdevice Get data on User and Device
DefaultApi sessionUserdevicePut PUT /session/userdevice Update data on User, Device, and Geofence
DefaultApi statisticsGet GET /statistics Fetch server Statistics
DefaultApi usersFilterGet GET /users/filter Fetch a list of Users filtered by specific email
DefaultApi usersGet GET /users Fetch a list of Users
DefaultApi usersIdDelete DELETE /users/{id} Delete a User
DefaultApi usersIdGet GET /users/{id} Get a User
DefaultApi usersIdPut PUT /users/{id} Update a User
DefaultApi usersPost POST /users Create a User

Documentation For Models

Documentation For Authorization

basicAuth

  • Type: HTTP basic authentication

Author