Integração da Juno com Django
Project description
Django Juno
Django Juno é um app para facilitar a integração com a API da Juno no Django.
Documentação detalhada na pasta "docs".
Instalação
Instale usando pip
pip install django-juno
Adicione as seguintes variáveis no seu arquivo settings.py
JUNO_CLIENT_ID = 'client-id'
JUNO_CLIENT_KEY = 'client-key'
JUNO_RESOURCE_TOKEN = 'resource-token'
JUNO_SERVER = 'server'
Exemplos
>>> from juno import juno_provider
>>> juno_provider.list_webhooks()
b'{"_embedded":{"webhooks":[{"id":"wbh_XXXXXXXXXXX","url":"xxxx","secret":"xxxxx","status":"ACTIVE","eventTypes":[{"id":"evt_XXXXXXXXX","name":"PAYMENT_NOTIFICATION","label":"Uma notifica\xc3\xa7\xc3\xa3o de pagamento foi gerada","status":"ENABLED"},{"id":"evt_CFCEXXXXXXXX","name":"CHARGE_STATUS_CHANGED","label":"O status de uma cobran\xc3\xa7a foi alterado","status":"ENABLED"}],"_links":{"self":{"href":"https://sandbox.boletobancario.com/api-integration/notifications/webhooks/wbh_7CXXXXXXXXXX"}}}]},"_links":{"self":{"href":"https://sandbox.boletobancario.com/api-integration/notifications/webhooks"}}}'
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
django-juno-0.0.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for django_juno-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bbfb89bf69176c860eb11e5b1cbc1a958847485699b20a8835f2b0ae1aef1d06 |
|
MD5 | a2fc4083960f2f8a22464336cd30a8c7 |
|
BLAKE2b-256 | 83323166e361c5dea57cf3665af632f998942f9416c681cbd1e83018feb2889e |