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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b942a138ca800c4f5271f12ff8d80204b0e7a70fe81584f1de7db12352942c4 |
|
MD5 | 479bc507e94b8248300bd8ce7dd8fe12 |
|
BLAKE2b-256 | afa9fd3573949a4dcc0a76c71efa9c9b37450abba61d48162f0bf62701208119 |
Close
Hashes for mindsight_people_control_api-0.1.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 215c36a7aa5cabc75a16454661d21d7c083437d13dff306632597422a906e78c |
|
MD5 | d9d830f39c3c20cf24b373aaf9d46e4b |
|
BLAKE2b-256 | 0c029bbd27313a9015cff3ffc204ef80575945f3c3f34403eebe7d1a241bdb35 |