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_CP_API_TOKEN= # Token to authenticate
MINDSIGHT_CP_API_URL=https://controle.mindsight.com.br/api # Base path of your api instance
Usage Example
You can use mindsight-people-control-api in order to 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.13.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fa3a7c531f85d2f0265e9da45fd7817b9a5a116b1a553ff58cc76f2d95e8660 |
|
MD5 | cb6f74c294057df4e254ecc15afc62d2 |
|
BLAKE2b-256 | 37b243de00dd967a05c50525c1718270c49ebd45630555719f121e079e646173 |
Close
Hashes for mindsight_people_control_api-0.1.13-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72c7d99f6bf94acc8a404662ce7359c4fb04b229c7fd7b118471fe00e6245afd |
|
MD5 | 6b3d61564f11ed61548a3c51c87615a1 |
|
BLAKE2b-256 | 495880732da35fd9955b8fdc84cd66c325d2cf3dd4b56572e25a17a9317bb1ca |