Mindsight People Control API to create, update and delete records
Project description
Mindsight People Control API
Use mindsight people control functionalities in your python application.
Instalation
pip install mindsight-people-control-api
Configuration
Environment variables
To use mindsight-people-control-api, you need to set two environment variables:
# ---DOTENV EXAMPLE---
MINDSIGHT_API_TOKEN= # Token to authenticate
MINDSIGHT_API_BASE_URL=https://controle.mindsight.com.br/api # Base path of your api instance
Usage Example
You can use mindsight-people-control-api create, update and delete registers on all system tables.
List registers
You can use get methods to list registers of system table. See the following example:
import mindsight_people_control_api
# Instantiate Areas client object
areas_client = mindsight_people_control_api.Areas()
# get_list_areas will return a ApiPaginationResponse object.
# This object represents a pagination response from rest api from people control
# and with get_all method from ApiPaginationResponse object, you can get all
# data of all pages. The data will stored in results attribute of ApiPaginationResponse
areas_data = areas_client.get_list_areas().get_all().results
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for mindsight_people_control_api-0.1.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f0a84de656434b13bafdb8fb020aa7c7cf12b93ae7a50006a2a9adb872e2c620 |
|
MD5 | a92119659ce9a695ec56b196f7d23150 |
|
BLAKE2b-256 | 7f7c1371df67e0f208b3ff9c094f1af7740e978afbbc2b2cbd73ce430970344c |
Close
Hashes for mindsight_people_control_api-0.1.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b25688f7331842973306f0c70b8d38035164647865a889e7e950476661734d4 |
|
MD5 | 85274ae03e3e855a22cbf746ae2814ed |
|
BLAKE2b-256 | d2de5d42530e414aff497a6e8c2887254cc87165a427e216350409602b37969e |