get enviorment variables

This commit is contained in:
ruben beck
2023-11-13 12:24:49 +01:00
committed by ok300
parent b48248c143
commit 72f4ea0d0d

View File

@@ -15,6 +15,7 @@ from src.lnurl_auth import auth
from src.lnurl_pay import pay
from src.lnurl_withdraw import withdraw
import tempfile
import os
class SDKListener(breez_sdk.EventListener):
@@ -26,8 +27,8 @@ def main():
temp_dir = tempfile.TemporaryDirectory()
api_key = "API_KEY"
mnemonic = "MNEMONIC"
api_key = os.getenv("API_KEY")
mnemonic = os.getenv("MNEMONIC")
# getting started
sdk_services = getting_started(api_key, mnemonic, temp_dir.name)