Portal Fácil SDK
SDK Python para integração com o Portal Fácil CRM, permitindo gerenciar beneficiários e tickets de atendimento de forma simples e eficiente.
Recursos
- Consulta de beneficiários por documento
- Abertura de tickets de atendimento
- Adição de anotações em tickets
- Gerenciamento automático de autenticação e tokens
- Cache de token para otimização de requisições
Instalação
pip install portal-facil-sdk
Como Usar
Configuração Inicial
from portal_facil_sdk import AtendimentoController, CrmProvider, CacheService
# Configurar o cache para tokens
cache = CacheService('token_cache.pkl')
# Configurar o provider
provider = CrmProvider(
app_key='sua_app_key',
base_url='url_base_do_crm',
username='seu_usuario',
password='sua_senha',
tipo_entidade_padrao=1, # configure conforme necessário
origem_padrao=1, # configure conforme necessário
subcategoria_padrao=1, # configure conforme necessário
cache=cache
)
# Criar o controller
controller = AtendimentoController(provider)
Consultando um Beneficiário
beneficiario = controller.consultar_beneficiario('000002-7')
print(beneficiario.nome)
print(beneficiario.cpf)
print(beneficiario.codigo)
Abrindo um Ticket
ticket = controller.abrir_chamado(beneficiario, '1137092380')
print(ticket.id)
print(ticket.protocolo)
Licença
Este projeto está licenciado sob a licença MIT - consulte o arquivo LICENSE para mais detalhes.
Autor
- Tatianno Alves - [tferreiraalves@gmail.com]
Metadata
Release files for portal-facil-sdk 0.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| portal_facil_sdk-0.4.0-py3-none-any.whl | Python 3 | none | any | Details for portal_facil_sdk-0.4.0-py3-none-any.whl |
Release files / portal_facil_sdk-0.4.0-py3-none-any.whl
| Download URL | portal_facil_sdk-0.4.0-py3-none-any.whl |
|---|---|
| Size | 52.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7163c38427e8070a8a0ca1b9ccb7786872002bb438a2d7235c90a292e6662f8e
|
|
BLAKE2b-256 checksum How to use checksums |
50d37dbd41b34b88f98055225fbee3955a8a69235f2d27e4825801640ac6e2ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.3
|
Security for portal-facil-sdk 0.4.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.