Skip to main content

Mindsight People Control API to create, update and delete records

Project description

Mindsight People Control API

PyPI Latest Release

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mindsight_people_control_api-0.1.21.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file mindsight_people_control_api-0.1.21.tar.gz.

File metadata

File hashes

Hashes for mindsight_people_control_api-0.1.21.tar.gz
Algorithm Hash digest
SHA256 ee4e1976ac0980aa3231c737e419780c35b929a741225cc9d75c2cb4f421ba0a
MD5 86e78a664aefe84dcdd8f71d6a9c0895
BLAKE2b-256 faf9a9e76403fa0926d041f0c424b4d6d239b480c6bdd3ea1f9dfc2533b37bcf

See more details on using hashes here.

File details

Details for the file mindsight_people_control_api-0.1.21-py3-none-any.whl.

File metadata

File hashes

Hashes for mindsight_people_control_api-0.1.21-py3-none-any.whl
Algorithm Hash digest
SHA256 bbceb1337c6e9cddd0baa03f2daf3da5513e5452d9df89b8e06ed0607973a1a4
MD5 a2f54e1ed8c7ec5028784246de1a6821
BLAKE2b-256 a1e5c4aca03ff4da070c1824dbebaee20ec25a0b271dfbaa2cebfe1044239b7f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page