16 lines
370 B
Python
16 lines
370 B
Python
|
|
from akahuclient import AkahuClient
|
||
|
|
import os
|
||
|
|
from dotenv import load_dotenv
|
||
|
|
|
||
|
|
|
||
|
|
load_dotenv()
|
||
|
|
|
||
|
|
TOKEN = os.getenv("AKAHU_API_TOKEN")
|
||
|
|
APP_ID = os.getenv("AKAHU_APP_ID")
|
||
|
|
|
||
|
|
if not TOKEN or not APP_ID:
|
||
|
|
print("Please set AKAHU_API_TOKEN and AKAHU_APP_ID in your environment.")
|
||
|
|
exit(1)
|
||
|
|
client = AkahuClient(TOKEN, APP_ID)
|
||
|
|
accounts = client.get_accounts()
|
||
|
|
print(accounts)
|