def __init__(self): self.client = Client(getattr(settings, 'NEXMO_API_KEY'), getattr(settings, 'NEXMO_API_SECRET'))
def client(self): api_key = self.config.get('key') api_secret = self.config.get('secret') return Client(key=api_key, secret=api_secret)