Skip to main content

API Client for Fichar.io

Project description

Fichar.io

Fichar.io API Client

The Fichario Client Python library serves as a client for interacting with the API provided by Fichar.io. This API client simplifies the process of authenticating users and making various requests to the API's endpoints. The client uses JSON Web Tokens (JWT) for authentication and supports retrieving user credentials, company information, device details, payload data, etc.

Installation

You can install the package using pip:

pip install fichario-client

Usage

  1. Import the FicharioClient class:
from fichario_client.client import FicharioClient
  1. Create an instance of the FicharioClient class with your user credentials:
client = FicharioClient(email="your_email@example.com", password="your_password")
  1. Access API functionalities using the client's methods:
  • Retrieve user credentials:
user_credentials = client.get_user_credentials()
print(user_credentials)
  • Retrieve your company's information:
company_info = client.get_my_company()
print(company_info)
  • List your devices:
devices = client.list_my_devices()
print(devices)
  • Get information about a specific device:
device_id = "your_device_id"
device_info = client.get_device(deviceId=device_id)
print(device_info)
  • Retrieve payload data from a device:
payload_data = client.get_payload(deviceId=device_id, get_all=True)
print(payload_data)
  • Retrieve raw payload data from a device:
raw_payload_data = client.get_raw_payload(deviceId=device_id)
print(raw_payload_data)
  • Get device information:
device_info = client.get_device_info(deviceId=device_id)
print(device_info)
  • Retrieve alarms associated with a device:
alarms = client.get_device_alarms(deviceId=device_id)
print(alarms)
  • Retrieve alarm history associated with a device:
alarm_history = client.get_device_alarms_history(deviceId=device_id)
print(alarm_history)

Note: Ensure you have all the requirements for the library installed before using the library FicharioClient.

Contributing

Contributions to this API client are welcome. If you encounter any issues or have suggestions for improvements, feel free to open an issue or submit a pull request on the project's GitHub repository.

License

This project is licensed under the MIT License. You can find the license details in the LICENSE file in the project repository.

Disclaimer

This API client is designed to interact with the "https://api.fichar.io/" API based on the available information. Be sure to refer to the API documentation for detailed information about endpoints, authentication, and usage limits.

Stay in touch

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

fichario_client-0.1.5.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fichario_client-0.1.5-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file fichario_client-0.1.5.tar.gz.

File metadata

  • Download URL: fichario_client-0.1.5.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.17 Darwin/22.3.0

File hashes

Hashes for fichario_client-0.1.5.tar.gz
Algorithm Hash digest
SHA256 899a759cfa97890bd24a5c661b9ceaca8e39693b324c56cdecbcb31070e1b370
MD5 28d9f754048032246f4057be82bb907b
BLAKE2b-256 30e451f63c5deae85b9247e05c32fe9ddcbaa8651ca6e57135a40d12ae062f24

See more details on using hashes here.

File details

Details for the file fichario_client-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: fichario_client-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.17 Darwin/22.3.0

File hashes

Hashes for fichario_client-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 bd010ef9f8f6895501939be68689011a086d2af1d791213afabd555294cbb405
MD5 4a43afe4da5a60abb19a1709be7897a1
BLAKE2b-256 d7829ededfb7e8542a0ab00a5ff78a173b79fb58a779c7de42fbefad52c1de66

See more details on using hashes here.

Supported by

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