A Python Getnet Santander SDK
This project provider a SDK to handler with Santander Getnet API.
To install getnet-py you can use pip:
$ pip install getnet-py
or pipenv:
$ pipenv install getnet-py
For use this library the following information is needed:
The following environments are supported:
from getnet import Environment, Client
client = Client("seller_id", "client_id", "client_secret", Environment.SANDBOX)
client.auth() # Optional, will be executed if needed
With client instanced, the services can be accessed in two ways:
Using the client shotcuts:
service = client.token_service()
service.generate(...)
or instancing the services and passing the client as the first param:
from getnet.services.token import Service
service = Service(client)
service.generate(...)
At moment, we have support to the following services:
Ramon Soares contact@ramon.dev.br