@greenbase/

balance

Python

Fetch balance for account

fork
loading
Files
  • main.py

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.04456129017177424","path":"main.py","file":{"path":"main.py","content":{"asEncoding":{"base64":"aW1wb3J0IHJlcXVlc3RzCgoiIiIKQWxsb3dlZCB2YWx1ZXMgZm9yIHRlc3Rpbmc6IAooY3VzdG9tZXJfaWQsIGFjY291bnRfaWQpID0gKDEsMSksICgxLDIpLCAoMiwxKQoiIiIgCgp1cmwgPSAnaHR0cHM6Ly9hcGkuZ3JlZW5iYXNlLmtpd2kvYmFsYW5jZT9jdXN0b21lcl9pZD0xJmFjY291bnRfaWQ9MScgCmhlYWRlcnMgPSB7J0F1dGhvcml6YXRpb24nOiAnZ3IzM25iYXNlX2V4YW1wbGVfdG9rZW5fITokJCd9CgpyZXNwb25zZSA9IHJlcXVlc3RzLmdldCh1cmwsIGhlYWRlcnM9aGVhZGVycykKCnByaW50KHJlc3BvbnNlLnRleHQp"},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
import requests

"""
Allowed values for testing: 
(customer_id, account_id) = (1,1), (1,2), (2,1)
""" 

url = 'https://api.greenbase.kiwi/balance?customer_id=1&account_id=1' 
headers = {'Authorization': 'gr33nbase_example_token_!:$$'}

response = requests.get(url, headers=headers)

print(response.text)