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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e98582bfa6a5acfb7d5570ef354ed31254828ab5aac1d9bd0632100ca33568a |
|
MD5 | a060e73945c554d4875f5452d339f946 |
|
BLAKE2b-256 | aac9f39d2f686e8ba01358a8e1b2e4dce690a2d01371f274c562193c4f8c07c0 |
Close
Hashes for mindsight_people_control_api-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9b5d49023f1782447cad884c94ca98d71a3d717a6890d3ed6fdd2cdd6b2a43a |
|
MD5 | 460240d33525bef41ca6fb9bd9754d6b |
|
BLAKE2b-256 | a10ee1e01b4f13326ee7deeea3340ea8f3fed3104c7882fef4a1a7eb1e549626 |