Subversion Repositories SmartDukaan

Rev

Rev 23688 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

'''
Created on 22/05/2018

@author: Govind
'''

from shop2020.clients.LogisticsClient import LogisticsClient
from shop2020.thriftpy.utils.ttypes import *



logistics_client=LogisticsClient()
client = logistics_client.get_client()

"""
mail = Mail()
mail.to = ["rajveer.singh@shop2020.in","rajveer.singh@shop2020.in"]
mail.subject = "Test mail subject"
mail.data = "Mail text"
mail.password = "dummy"
mail.sender="rajveer.singh@shop2020.in"
client.sendMail(mail)
"""

#def test_get_reports():
#    reports = client.getReports(2)
#   for r in reports:
 #       print r.description
    
#def test_email_archival():
 #   client.markEmailAsSent(29)
    


#test_get_reports()
#test_email_archival()

if __name__ == '__main__':
    print client.isAlive()