Skip to main content

Cliente para comunicacion con flowAPI-3 de flow.cl

Project description

PyFlowCL

Cliente API para operaciones con el servicio de pagos Flow.cl FlowAPI-3.0.1
Frunciona como wrapper sobre cliente [OpenAPI3] (https://github.com/Dorthu/openapi3)

pyflowcl-tests PyPI version

Instalación

Este proyecto está desarrollado para Python 3.7 y superior.
Este proyecto es administrado por Poetry.

# con Poetry
$ poetry add pyflowcl
# con PIP
$ pip install pyflowcl

Uso

APIKey y SecretKey pueden ser configurados de dos maneras

Usando el constructor

from pyflowcl import FlowAPI

flow = FlowAPI(flow_key="key", flow_secret="secret")

Usando variables de entorno

export PYFLOWCL_KEY="key"
export PYFLOWCL_SECRET="SECRET"
python cliente_flow.py

Cliente Antiguo

from pyflowcl import Payment
from pyflowcl.Clients import ApiClient

API_URL = "https://www.flow.cl/api"
API_KEY = "your_key"
API_SECRET = "your_secret"
FLOW_TOKEN = "your_payment_token"
api = ApiClient(API_URL, API_KEY, API_SECRET)

call = Payment.getStatus(api, FLOW_TOKEN)
print(call)

Licencia

Puedes revisar el texto completo de la licencia aqui

Este proyecto está licenciado bajo los términos de la licencia MIT.
FlowAPI está licenciado bajo los términos de la licencia Apache 2.0.

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

pyflowcl-1.1.2.tar.gz (68.9 kB view hashes)

Uploaded Source

Built Distribution

pyflowcl-1.1.2-py3-none-any.whl (73.1 kB view hashes)

Uploaded Python 3

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