A simple sample application for the Python client for Investec Programmable Banking which performs an integration test against the Investec Bank API sandbox endpoint.
Install Poetry for dependency and runtime management, which already references the client library in the pyproject.toml
configuration. Follow the instructions on the Poetry site here.
- Create the credentials file
creds.properties
in the project directory. This is clearly not best practice but good enough to test using the sandbox credentials located in the Investec API documentation.
[creds]
client_id = yAx...5eY
client_secret = 4dY...99r
api_key = eUF4....VBPT0
- From the project directory, run the python application.
poetry run python app
At the time of writing, API sandbox functionality is limited to the account scope. The sample application uses a boolean variable card_sandbox
to skip interactions with the card scope.
Distributed under the MIT License. See LICENSE for more information.