项目作者: BehaWorks

项目描述 :
Python client for BehaPass API
高级语言: Python
项目地址: git://github.com/BehaWorks/behapass-python-client.git
创建时间: 2019-11-27T11:39:34Z
项目社区:https://github.com/BehaWorks/behapass-python-client

开源协议:

下载


behapass-client

BehaPass API description

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

  • API version: 1.1
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.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

  1. 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:

  1. import behapass_client

Setuptools

Install via Setuptools.

  1. python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

  1. import behapass_client

Getting Started

Please follow the installation procedure and then run the following:

  1. from __future__ import print_function
  2. import time
  3. import behapass_client
  4. from behapass_client.rest import ApiException
  5. from pprint import pprint
  6. # create an instance of the API class
  7. api_instance = behapass_client.LoggerApi(behapass_client.ApiClient(configuration))
  8. user_id = 'user_id_example' # str |
  9. try:
  10. # Removes unfinished registration movements
  11. api_instance.delete_register_user(user_id)
  12. except ApiException as e:
  13. print("Exception when calling LoggerApi->delete_register_user: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://localhost/api

Class Method HTTP request Description
LoggerApi delete_register_user DELETE /logger/user/{user_id}/movements Removes unfinished registration movements
LoggerApi get_button_record GET /logger/buttons Returns all existing button records
LoggerApi get_movement_record GET /logger/movements Returns all recorded movements
LoggerApi get_register_user GET /logger/user/{user_id}/movements Returns all recorded movements
LoggerApi get_user_data GET /logger/user/{user_id} Returns selected user’s data
LoggerApi logger_get GET /logger/ Returns all existing records
LoggerApi post_logger_record POST /logger/ Stores received records
LoggerApi post_lookup POST /logger/lookup Identifies the user
LoggerApi post_register_user POST /logger/user/{user_id}/movements Stores user data permanently once registered
LoggerApi post_user_record POST /logger/user Creates a new user ID

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author