Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def initialize(username, api_key):
if username is None or api_key is None:
raise RuntimeError('Invalid username and/or api_key')
globals()['SMS'] = SMSService(username, api_key)
globals()['Airtime'] = AirtimeService(username, api_key)
globals()['Payment'] = PaymentService(username, api_key)
globals()['Voice'] = VoiceService(username, api_key)
globals()['Application'] = ApplicationService(username, api_key)
globals()['Token'] = TokenService(username, api_key)
# globals()['USSD'] = USSDService(username, api_key)
def __init__(self, username, api_key):
super(SMSService, self).__init__(username, api_key)