import os, sys sys.path.append( os.path.join(os.path.dirname(os.path.realpath(__file__)), '../')) from intis import IntisClient, IntisError from examples.conf import API_LOGIN, API_KEY, API_HOST client = IntisClient(API_LOGIN, API_KEY, host=API_HOST) messages = client.message_send('79140000000', 'SMS4TEST', 'hello') for message in messages: print(vars(message))
def setUp(self): self.client = IntisClient(settings.login, settings.api_key, debug=settings.debug)