Skip to content

gkeep-openapi/python-sdk

Repository files navigation

swagger-client

Gkeep API

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

  • API version: 1.0.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.v3.generators.python.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com/gkeep-openapi/python-sdk.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/gkeep-openapi/python-sdk.git)

Then import the package:

import swagger_client 

Setuptools

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 swagger_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint

# create an instance of the API class
api_instance = swagger_client.UserAuthorizationApi(swagger_client.ApiClient(configuration))
body = swagger_client.UserCredentials() # UserCredentials | A JSON object containing user credentials info

try:
    api_response = api_instance.authorize(body)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling UserAuthorizationApi->authorize: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://staging-transport.smart-gamma.com

Class Method HTTP request Description
UserAuthorizationApi authorize POST /api/login_check
V1Api get_countries_list GET /api/v1/countries/by
V1Api get_tank_type_list GET /api/v1/tank/types/by
V1Api get_user_group_list GET /api/v1/user/allowed/groups
V1Api get_vehicle_brand_list GET /api/v1/vehicle/brands
V1Api get_vehicle_fuel_types_list GET /api/v1/vehicle/fuel-types
V1Api get_vehicle_model_list GET /api/v1/vehicle/models
V1Api get_vehicle_national_type_list GET /api/v1/vehicle/national-types
V1Api get_vehicle_properties_list GET /api/v1/vehicle/properties
V1Api get_vehicle_type_list GET /api/v1/vehicle/types
V1Api get_vehicle_version_list GET /api/v1/vehicle/versions
V2Api create_user_profile POST /api/v2/user-profiles
V2Api create_vehicle_category POST /api/v2/vehicles/categories
V2Api delete_user_profile DELETE /api/v2/user-profiles/{profileId}
V2Api delete_vehicle_category DELETE /api/v2/vehicles/categories/{categoryId}
V2Api enable_vehicle_maintenance PUT /api/v2/vehicles/maintenance/{vehicleId}
V2Api get_alert_list GET /api/v2/alerts
V2Api get_alerts_status GET /api/v2/alerts/status
V2Api get_current_user_profile GET /api/v2/user-profiles
V2Api get_fleet_status GET /api/v2/fleet/status
V2Api get_notification_settings GET /api/v2/user-profiles/notification-settings
V2Api get_related_user_profiles GET /api/v2/user-profiles/{levelName}
V2Api get_user_profile GET /api/v2/user-profiles/{profileId}
V2Api get_vehicle_category GET /api/v2/vehicles/categories/{categoryId}
V2Api get_vehicle_category_list GET /api/v2/vehicles/categories
V2Api get_vehicle_status GET /api/v2/vehicles/{vehicleId}/status
V2Api get_vehicles GET /api/v2/vehicles
V2Api get_vehicles_daily_stats GET /api/v2/vehicles/{vehicleId}/daily-statistics
V2Api get_vehicles_frame_history GET /api/v2/vehicles/{vehicleId}/frame-history
V2Api get_vehicles_refuels GET /api/v2/vehicles/{vehicleId}/refuels
V2Api get_vehicles_stopped_consumptions GET /api/v2/vehicles/{vehicleId}/stopped-consumptions
V2Api refresh_api_token PUT /api/v2/user-profiles/tokens/refresh
V2Api update_notification_settings PUT /api/v2/user-profiles/notification-settings
V2Api update_user_profile PUT /api/v2/user-profiles/{profileId}
V2Api update_vehicle PUT /api/v2/vehicles/{vehicleId}
V2Api update_vehicle_category PUT /api/v2/vehicles/categories/{categoryId}

Documentation For Models

Documentation For Authorization

bearerAuth

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published