Skip to content

Commit aaa53e1

Browse files
committed
initial
0 parents  commit aaa53e1

File tree

2,436 files changed

+295657
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,436 files changed

+295657
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.php_cs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?php
2+
3+
return Symfony\CS\Config::create()
4+
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
5+
->setUsingCache(true)
6+
->fixers(
7+
[
8+
'ordered_use',
9+
'phpdoc_order',
10+
'short_array_syntax',
11+
'strict',
12+
'strict_param'
13+
]
14+
)
15+
->finder(
16+
Symfony\CS\Finder\DefaultFinder::create()
17+
->in(__DIR__)
18+
);

.travis.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
language: php
2+
sudo: false
3+
php:
4+
- 5.4
5+
- 5.5
6+
- 5.6
7+
- 7.0
8+
- hhvm
9+
before_install: "composer install"
10+
script: "vendor/bin/phpunit"

README.md

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
# SwaggerClient-php
2+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
3+
4+
This PHP package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
5+
6+
- API version: 3.16
7+
- Build package: io.swagger.codegen.languages.PhpClientCodegen
8+
9+
## Requirements
10+
11+
PHP 5.5 and later
12+
13+
## Installation & Usage
14+
### Composer
15+
16+
To install the bindings via [Composer](http://getcomposer.org/), add the following to `composer.json`:
17+
18+
```
19+
{
20+
"repositories": [
21+
{
22+
"type": "git",
23+
"url": "https://github.com//.git"
24+
}
25+
],
26+
"require": {
27+
"/": "*@dev"
28+
}
29+
}
30+
```
31+
32+
Then run `composer install`
33+
34+
### Manual Installation
35+
36+
Download the files and include `autoload.php`:
37+
38+
```php
39+
require_once('/path/to/SwaggerClient-php/vendor/autoload.php');
40+
```
41+
42+
## Tests
43+
44+
To run the unit tests:
45+
46+
```
47+
composer install
48+
./vendor/bin/phpunit
49+
```
50+
51+
## Getting Started
52+
53+
Please follow the [installation procedure](#installation--usage) and then run the following:
54+
55+
```php
56+
<?php
57+
require_once(__DIR__ . '/vendor/autoload.php');
58+
59+
// Configure HTTP basic authorization: basicAuth
60+
->setUsername('YOUR_USERNAME')
61+
->setPassword('YOUR_PASSWORD');
62+
63+
$apiInstance = new Swagger\Client\Api\DefaultApi(
64+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
65+
// This is optional, `GuzzleHttp\Client` will be used as default.
66+
new GuzzleHttp\Client(),
67+
$config
68+
);
69+
$all = true; // bool | Can only be used by admins or managers to fetch all entities
70+
$user_id = 56; // int | Standard users can use this only with their own _userId_
71+
$device_id = 56; // int | Standard users can use this only with _deviceId_s, they have access to
72+
$group_id = 56; // int | Standard users can use this only with _groupId_s, they have access to
73+
$refresh = true; // bool |
74+
75+
try {
76+
$result = $apiInstance->attributesComputedGet($all, $user_id, $device_id, $group_id, $refresh);
77+
print_r($result);
78+
} catch (Exception $e) {
79+
echo 'Exception when calling DefaultApi->attributesComputedGet: ', $e->getMessage(), PHP_EOL;
80+
}
81+
82+
?>
83+
```
84+
85+
## Documentation for API Endpoints
86+
87+
All URIs are relative to *http://nfn.siilats.com:8082/api*
88+
89+
Class | Method | HTTP request | Description
90+
------------ | ------------- | ------------- | -------------
91+
*DefaultApi* | [**attributesComputedGet**](docs/Api/DefaultApi.md#attributescomputedget) | **GET** /attributes/computed | Fetch a list of Attributes
92+
*DefaultApi* | [**attributesComputedIdDelete**](docs/Api/DefaultApi.md#attributescomputediddelete) | **DELETE** /attributes/computed/{id} | Delete an Attribute
93+
*DefaultApi* | [**attributesComputedIdPut**](docs/Api/DefaultApi.md#attributescomputedidput) | **PUT** /attributes/computed/{id} | Update an Attribute
94+
*DefaultApi* | [**attributesComputedPost**](docs/Api/DefaultApi.md#attributescomputedpost) | **POST** /attributes/computed | Create an Attribute
95+
*DefaultApi* | [**calendarsGet**](docs/Api/DefaultApi.md#calendarsget) | **GET** /calendars | Fetch a list of Calendars
96+
*DefaultApi* | [**calendarsIdDelete**](docs/Api/DefaultApi.md#calendarsiddelete) | **DELETE** /calendars/{id} | Delete a Calendar
97+
*DefaultApi* | [**calendarsIdPut**](docs/Api/DefaultApi.md#calendarsidput) | **PUT** /calendars/{id} | Update a Calendar
98+
*DefaultApi* | [**calendarsPost**](docs/Api/DefaultApi.md#calendarspost) | **POST** /calendars | Create a Calendar
99+
*DefaultApi* | [**commandsGet**](docs/Api/DefaultApi.md#commandsget) | **GET** /commands | Fetch a list of Saved Commands
100+
*DefaultApi* | [**commandsIdDelete**](docs/Api/DefaultApi.md#commandsiddelete) | **DELETE** /commands/{id} | Delete a Saved Command
101+
*DefaultApi* | [**commandsIdPut**](docs/Api/DefaultApi.md#commandsidput) | **PUT** /commands/{id} | Update a Saved Command
102+
*DefaultApi* | [**commandsPost**](docs/Api/DefaultApi.md#commandspost) | **POST** /commands | Create a Saved Command
103+
*DefaultApi* | [**commandsSendGet**](docs/Api/DefaultApi.md#commandssendget) | **GET** /commands/send | Fetch a list of Saved Commands supported by Device at the moment
104+
*DefaultApi* | [**commandsSendPost**](docs/Api/DefaultApi.md#commandssendpost) | **POST** /commands/send | Dispatch commands to device
105+
*DefaultApi* | [**commandsTypesGet**](docs/Api/DefaultApi.md#commandstypesget) | **GET** /commands/types | Fetch a list of available Commands for the Device or all possible Commands if Device ommited
106+
*DefaultApi* | [**devicesGet**](docs/Api/DefaultApi.md#devicesget) | **GET** /devices | Fetch a list of Devices
107+
*DefaultApi* | [**devicesIdDelete**](docs/Api/DefaultApi.md#devicesiddelete) | **DELETE** /devices/{id} | Delete a Device
108+
*DefaultApi* | [**devicesIdDistancePut**](docs/Api/DefaultApi.md#devicesiddistanceput) | **PUT** /devices/{id}/distance | Update the distance counter of the Device
109+
*DefaultApi* | [**devicesIdPut**](docs/Api/DefaultApi.md#devicesidput) | **PUT** /devices/{id} | Update a Device
110+
*DefaultApi* | [**devicesPost**](docs/Api/DefaultApi.md#devicespost) | **POST** /devices | Create a Device
111+
*DefaultApi* | [**driversGet**](docs/Api/DefaultApi.md#driversget) | **GET** /drivers | Fetch a list of Drivers
112+
*DefaultApi* | [**driversIdDelete**](docs/Api/DefaultApi.md#driversiddelete) | **DELETE** /drivers/{id} | Delete a Driver
113+
*DefaultApi* | [**driversIdPut**](docs/Api/DefaultApi.md#driversidput) | **PUT** /drivers/{id} | Update a Driver
114+
*DefaultApi* | [**driversPost**](docs/Api/DefaultApi.md#driverspost) | **POST** /drivers | Create a Driver
115+
*DefaultApi* | [**eventsIdGet**](docs/Api/DefaultApi.md#eventsidget) | **GET** /events/{id} |
116+
*DefaultApi* | [**geofencesGet**](docs/Api/DefaultApi.md#geofencesget) | **GET** /geofences | Fetch a list of Geofences
117+
*DefaultApi* | [**geofencesIdDelete**](docs/Api/DefaultApi.md#geofencesiddelete) | **DELETE** /geofences/{id} | Delete a Geofence
118+
*DefaultApi* | [**geofencesIdPut**](docs/Api/DefaultApi.md#geofencesidput) | **PUT** /geofences/{id} | Update a Geofence
119+
*DefaultApi* | [**geofencesPost**](docs/Api/DefaultApi.md#geofencespost) | **POST** /geofences | Create a Geofence
120+
*DefaultApi* | [**groupsGet**](docs/Api/DefaultApi.md#groupsget) | **GET** /groups | Fetch a list of Groups
121+
*DefaultApi* | [**groupsIdDelete**](docs/Api/DefaultApi.md#groupsiddelete) | **DELETE** /groups/{id} | Delete a Group
122+
*DefaultApi* | [**groupsIdPut**](docs/Api/DefaultApi.md#groupsidput) | **PUT** /groups/{id} | Update a Group
123+
*DefaultApi* | [**groupsPost**](docs/Api/DefaultApi.md#groupspost) | **POST** /groups | Create a Group
124+
*DefaultApi* | [**notificationsGet**](docs/Api/DefaultApi.md#notificationsget) | **GET** /notifications | Fetch a list of Notifications
125+
*DefaultApi* | [**notificationsIdDelete**](docs/Api/DefaultApi.md#notificationsiddelete) | **DELETE** /notifications/{id} | Delete a Notification
126+
*DefaultApi* | [**notificationsIdPut**](docs/Api/DefaultApi.md#notificationsidput) | **PUT** /notifications/{id} | Update a Notification
127+
*DefaultApi* | [**notificationsPost**](docs/Api/DefaultApi.md#notificationspost) | **POST** /notifications | Create a Notification
128+
*DefaultApi* | [**notificationsTestPost**](docs/Api/DefaultApi.md#notificationstestpost) | **POST** /notifications/test | Send test notification to current user via Email and SMS
129+
*DefaultApi* | [**notificationsTypesGet**](docs/Api/DefaultApi.md#notificationstypesget) | **GET** /notifications/types | Fetch a list of available Notification types
130+
*DefaultApi* | [**permissionsDelete**](docs/Api/DefaultApi.md#permissionsdelete) | **DELETE** /permissions | Unlink an Object from another Object
131+
*DefaultApi* | [**permissionsPost**](docs/Api/DefaultApi.md#permissionspost) | **POST** /permissions | Link an Object to another Object
132+
*DefaultApi* | [**positionsGet**](docs/Api/DefaultApi.md#positionsget) | **GET** /positions | Fetches a list of Positions
133+
*DefaultApi* | [**reportsEventsGet**](docs/Api/DefaultApi.md#reportseventsget) | **GET** /reports/events | Fetch a list of Events within the time period for the Devices or Groups
134+
*DefaultApi* | [**reportsRouteGet**](docs/Api/DefaultApi.md#reportsrouteget) | **GET** /reports/route | Fetch a list of Positions within the time period for the Devices or Groups
135+
*DefaultApi* | [**reportsStopsGet**](docs/Api/DefaultApi.md#reportsstopsget) | **GET** /reports/stops | Fetch a list of ReportStops within the time period for the Devices or Groups
136+
*DefaultApi* | [**reportsSummaryGet**](docs/Api/DefaultApi.md#reportssummaryget) | **GET** /reports/summary | Fetch a list of ReportSummary within the time period for the Devices or Groups
137+
*DefaultApi* | [**reportsTripsGet**](docs/Api/DefaultApi.md#reportstripsget) | **GET** /reports/trips | Fetch a list of ReportTrips within the time period for the Devices or Groups
138+
*DefaultApi* | [**serverGet**](docs/Api/DefaultApi.md#serverget) | **GET** /server | Fetch Server information
139+
*DefaultApi* | [**serverPut**](docs/Api/DefaultApi.md#serverput) | **PUT** /server | Update Server information
140+
*DefaultApi* | [**sessionDelete**](docs/Api/DefaultApi.md#sessiondelete) | **DELETE** /session | Close the Session
141+
*DefaultApi* | [**sessionGet**](docs/Api/DefaultApi.md#sessionget) | **GET** /session | Fetch Session information
142+
*DefaultApi* | [**sessionPost**](docs/Api/DefaultApi.md#sessionpost) | **POST** /session | Create a new Session
143+
*DefaultApi* | [**statisticsGet**](docs/Api/DefaultApi.md#statisticsget) | **GET** /statistics | Fetch server Statistics
144+
*DefaultApi* | [**usersGet**](docs/Api/DefaultApi.md#usersget) | **GET** /users | Fetch a list of Users
145+
*DefaultApi* | [**usersIdDelete**](docs/Api/DefaultApi.md#usersiddelete) | **DELETE** /users/{id} | Delete a User
146+
*DefaultApi* | [**usersIdPut**](docs/Api/DefaultApi.md#usersidput) | **PUT** /users/{id} | Update a User
147+
*DefaultApi* | [**usersPost**](docs/Api/DefaultApi.md#userspost) | **POST** /users | Create a User
148+
149+
150+
## Documentation For Models
151+
152+
- [Attribute](docs/Model/Attribute.md)
153+
- [Calendar](docs/Model/Calendar.md)
154+
- [Command](docs/Model/Command.md)
155+
- [CommandAttributes](docs/Model/CommandAttributes.md)
156+
- [CommandType](docs/Model/CommandType.md)
157+
- [Device](docs/Model/Device.md)
158+
- [DeviceTotalDistance](docs/Model/DeviceTotalDistance.md)
159+
- [Driver](docs/Model/Driver.md)
160+
- [Event](docs/Model/Event.md)
161+
- [Geofence](docs/Model/Geofence.md)
162+
- [Group](docs/Model/Group.md)
163+
- [Notification](docs/Model/Notification.md)
164+
- [NotificationType](docs/Model/NotificationType.md)
165+
- [Permission](docs/Model/Permission.md)
166+
- [Position](docs/Model/Position.md)
167+
- [ReportStops](docs/Model/ReportStops.md)
168+
- [ReportSummary](docs/Model/ReportSummary.md)
169+
- [ReportTrips](docs/Model/ReportTrips.md)
170+
- [Server](docs/Model/Server.md)
171+
- [Statistics](docs/Model/Statistics.md)
172+
- [User](docs/Model/User.md)
173+
174+
175+
## Documentation For Authorization
176+
177+
178+
## basicAuth
179+
180+
- **Type**: HTTP basic authentication
181+
182+
183+
## Author
184+
185+
186+
187+

composer.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"name": "siilats/traccar-php",
3+
"description": "",
4+
"keywords": [
5+
"swagger",
6+
"php",
7+
"sdk",
8+
"api"
9+
],
10+
"homepage": "http://swagger.io",
11+
"license": "proprietary",
12+
"authors": [
13+
{
14+
"name": "Swagger and contributors",
15+
"homepage": "https://github.com/swagger-api/swagger-codegen"
16+
}
17+
],
18+
"require": {
19+
"php": ">=5.5",
20+
"ext-curl": "*",
21+
"ext-json": "*",
22+
"ext-mbstring": "*",
23+
"guzzlehttp/guzzle": "^6.2"
24+
},
25+
"require-dev": {
26+
"phpunit/phpunit": "^4.8",
27+
"squizlabs/php_codesniffer": "~2.6",
28+
"friendsofphp/php-cs-fixer": "~1.12"
29+
},
30+
"autoload": {
31+
"psr-4": { "Swagger\\Client\\" : "lib/" }
32+
},
33+
"autoload-dev": {
34+
"psr-4": { "Swagger\\Client\\" : "test/" }
35+
}
36+
}

0 commit comments

Comments
 (0)