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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9171ac9d32a911b5b0b7b4c3a4235d2e285a33d8caa54455f99c0d22d6f2dc42 |
|
MD5 | 6fe17deb137b8a6a3810dade4e085cee |
|
BLAKE2b-256 | dbc8618294ac65cce09ba0d44c59647c05e80e424ff699341839e494ffd65cb7 |
Close
Hashes for mindsight_people_control_api-0.1.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 62c83f42eaf983bd72b7f4d54cf8d1dee7ee645e3245ed1f70247dd429bbfab3 |
|
MD5 | e10e787dfd0633ebc6ca449093ca367f |
|
BLAKE2b-256 | 9e2ca87147917c163c47829315f372dcf58322fbb030a84492d0b749d529fe9c |