working api compltely

This commit is contained in:
2025-09-23 22:40:16 -04:00
parent f2faced238
commit f6e22bb975
21 changed files with 249 additions and 53 deletions

View File

@@ -1,5 +1,11 @@
import os
from dotenv import load_dotenv
# Load environment variables from .env file
load_dotenv()
class ApplicationConfig:
"""
Basic Configuration for a generic User
@@ -33,3 +39,20 @@ class ApplicationConfig:
# # Authorize.net credentials (Sandbox Test Credentials)
# API_LOGIN_ID = '5KP3u95bQpv'
# TRANSACTION_KEY = '346HZ32z3fP4hTG2'
# VoIP.ms Credentials and Settings
voipms_api_username = os.environ.get('VOIPMS_API_USERNAME')
voipms_api_password = os.environ.get('VOIPMS_API_PASSWORD')
# Target DID and Destinations
target_did = os.environ.get('TARGET_DID')
target_sip_account = os.environ.get('TARGET_SIP_ACCOUNT')
target_cellphone_1 = os.environ.get('TARGET_CELLPHONE_1')
target_cellphone_2 = os.environ.get('TARGET_CELLPHONE_2')
# VoIP.ms API endpoint
voipms_api_url = os.environ.get('VOIPMS_API_URL', "https://voip.ms/api/v1/rest.php")
# Create a single instance of the settings to be used throughout the app
settings = ApplicationConfig()