Example #1
0
def userBind(uuid, userId):
    url = PrintConfig.baseUrl + '/home/userbind' + createParams()
    data = {'Uuid': uuid, 'UserId': userId}
    return sendPost(url, data)
Example #2
0
def getPrintTaskState(taskId):
    url = PrintConfig.baseUrl + '/home/getprinttaskstate' + createParams()
    data = {'TaskId': taskId}
    return sendPost(url, data)
Example #3
0
def printContent(uuid, content, openUserId):
    url = PrintConfig.baseUrl + '/home/printcontent2' + createParams()
    data = {'Uuid': uuid, 'PrintContent': content, 'OpenUserId': openUserId}
    return sendPost(url, data)
Example #4
0
def printHtmlContent(uuid, printUrl, openUserId):
    url = PrintConfig.baseUrl + '/home/printhtmlcontent' + createParams()
    data = {'Uuid': uuid, 'PrintUrl': printUrl, 'OpenUserId': openUserId}
    return sendPost(url, data)
Example #5
0
def getServiceState(uuid):
    url = PrintConfig.baseUrl + '/home/getdevicestate' + createParams()
    data = {'Uuid': uuid}
    return sendPost(url, data)