def getAppList(cfile="config.xml"):
    token=readConfig("token",cfile)
    device_id=readConfig("device_id",cfile)
    ret = getAppListService(token, device_id)
    if ret["code"]!="1":
        re_verify(cfile)
    else:
        return ret
def getRegularTime(cfile="config.xml"):
    token=readConfig("token",cfile)
    device_id=readConfig("device_id",cfile)
    ret = getRegularTimeService(token, device_id)
    if ret["code"]!="1":
        re_verify(cfile)
        token=readConfig("token",cfile)
        device_id=readConfig("device_id",cfile)
        ret = getRegularTimeService(token, device_id)
        return ret
    else:
        return ret
#!/usr/bin/python 
#coding=utf-8 

from Testsuite00_ModuleTest import getMessageTxtService

#===============================================================================
# device_serial_number="SN000001"
# imei="990002332085501"
# device_id="09d37448990002332085501"
# token="c7d9f134db08b7bcf1950c7b97c0f5c83a2c5f66"
# email="*****@*****.**"
# password="******"
#===============================================================================


if __name__ == '__main__': 
    from Testsuite05_ModuleTest_repeatVerifyService import re_verify,readConfig
    re_verify()
    token=readConfig("token")
    device_id=readConfig("device_id")
    getMessageTxtService(token, device_id)