Example #1
0
def QuerySoftwareUpradeDeviceList(appKey, appSecret, id, productId,
                                  isSelectDevice, pageNow, pageSize, MasterKey,
                                  deviceIdSearch, deviceNameSearch, imeiSearch,
                                  deviceGroupIdSearch):
    path = '/aep_software_upgrade_management/devices'
    head = {}
    param = {
        'id': id,
        'productId': productId,
        'isSelectDevice': isSelectDevice,
        'pageNow': pageNow,
        'pageSize': pageSize,
        'deviceIdSearch': deviceIdSearch,
        'deviceNameSearch': deviceNameSearch,
        'imeiSearch': imeiSearch,
        'deviceGroupIdSearch': deviceGroupIdSearch
    }
    version = '20200529233027'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None,
                                                version, application,
                                                MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
def getPosition(appKey, appSecret, cardId, posReqType):
    path = '/aep_gateway_position/api/getPosition'
    head = {}
    param = {'cardId':cardId, 'posReqType':posReqType}
    version = '20190301085737'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, None, key, 'GET')
    if response is not None:
        return response.read()
    return None
Example #3
0
def DeleteDevice(appKey, appSecret, MasterKey, productId, deviceIds):
    path = '/aep_device_management/device'
    head = {}
    param = {'productId':productId, 'deviceIds':deviceIds}
    version = '20181031202131'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'DELETE')
    if response is not None:
        return response.read()
    return None
Example #4
0
def CreateDevice(appKey, appSecret, MasterKey, body):
    path = '/aep_device_management/device'
    head = {}
    param = {}
    version = '20181031202117'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, MasterKey, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #5
0
def QueryPublicByProductId(appKey, appSecret, body):
    path = '/aep_public_product_management/publicProductList'
    head = {}
    param = {}
    version = '20190507004139'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, None, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #6
0
def QueryMyPublicProductList(appKey, appSecret, searchValue, pageNow, pageSize, productIds):
    path = '/aep_public_product_management/myPublicProductList'
    head = {}
    param = {'searchValue':searchValue, 'pageNow':pageNow, 'pageSize':pageSize, 'productIds':productIds}
    version = '20200829005359'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, None, key, 'GET')
    if response is not None:
        return response.read()
    return None
Example #7
0
def QueryRuleByRuleId(appKey, appSecret, body):
    path = '/aep_rule/rule'
    head = {}
    param = {}
    version = '20181031175724'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, None, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #8
0
def CreateCommand(appKey, appSecret, MasterKey, body):
    path = '/aep_command_modbus/modbus/command'
    head = {}
    param = {}
    version = '20200404012449'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, MasterKey, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #9
0
def QueryCommandList(appKey, appSecret, MasterKey, productId, searchValue, deviceId, status, startTime, endTime, pageNow, pageSize, groupCommandId):
    path = '/aep_device_command/commands'
    head = {}
    param = {'productId':productId, 'searchValue':searchValue, 'deviceId':deviceId, 'status':status, 'startTime':startTime, 'endTime':endTime, 'pageNow':pageNow, 'pageSize':pageSize, 'groupCommandId':groupCommandId}
    version = '20190712225211'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
Example #10
0
def CancelCommand(appKey, appSecret, MasterKey, body):
    path = '/aep_device_command/cancelCommand'
    head = {}
    param = {}
    version = '20190615023142'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, MasterKey, key, 'PUT')
    if response is not None:
        return response.read()
    return None
def ControlRemoteUpgradeTask(appKey, appSecret, id, MasterKey, body):
    path = '/aep_upgrade_management/control'
    head = {}
    param = {'id':id}
    version = '20190615001456'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, MasterKey, key, 'PUT')
    if response is not None:
        return response.read()
    return None
def QueryRemoteUpgradeTask(appKey, appSecret, id, productId, MasterKey):
    path = '/aep_upgrade_management/task'
    head = {}
    param = {'id':id, 'productId':productId}
    version = '20190615001509'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
def QueryRemoteUpgradeSubtasks(appKey, appSecret, id, productId, taskStatus, searchValue, pageNow, pageSize, MasterKey):
    path = '/aep_upgrade_management/details'
    head = {}
    param = {'id':id, 'productId':productId, 'taskStatus':taskStatus, 'searchValue':searchValue, 'pageNow':pageNow, 'pageSize':pageSize}
    version = '20190615001406'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
def OperationalRemoteUpgradeTask(appKey, appSecret, MasterKey, body):
    path = '/aep_upgrade_management/operational'
    head = {}
    param = {}
    version = '20190615001412'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, MasterKey, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #15
0
def saasCreateRule(appKey, appSecret, body):
    path = '/aep_rule/api/v2/rule/sass/createRule'
    head = {}
    param = {}
    version = '20190814092222'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, None, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #16
0
def QueryCommand(appKey, appSecret, MasterKey, productId, deviceId, commandId):
    path = '/aep_command_modbus/modbus/command'
    head = {}
    param = {'productId':productId, 'deviceId':deviceId, 'commandId':commandId}
    version = '20200904172207'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
Example #17
0
def QueryProductInfoByImei(appKey, appSecret, imei):
    path = '/aep_device_management/device/getProductInfoFormApiByImei'
    head = {}
    param = {'imei':imei}
    version = '20191213161859'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, None, key, 'GET')
    if response is not None:
        return response.read()
    return None
Example #18
0
def ProductGetInfo(appKey, appSecret, productId, MasterKey):
    path = '/aep_product/dm/product/v1/product'
    head = {}
    param = {'productId':productId}
    version = '20180717135002'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
Example #19
0
def QueryDeviceList(appKey, appSecret, MasterKey, productId, searchValue, pageNow, pageSize):
    path = '/aep_device_management/devices'
    head = {}
    param = {'productId':productId, 'searchValue':searchValue, 'pageNow':pageNow, 'pageSize':pageSize}
    version = '20190507012134'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
Example #20
0
def InstantiateProduct(appKey, appSecret, body):
    path = '/aep_public_product_management/instantiateProduct'
    head = {}
    param = {}
    version = '20200801233037'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body, version, application, None, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #21
0
def QueryCommandList(appKey, appSecret, MasterKey, productId, deviceId, status, startTime, endTime, pageNow, pageSize):
    path = '/aep_command_modbus/modbus/commands'
    head = {}
    param = {'productId':productId, 'deviceId':deviceId, 'status':status, 'startTime':startTime, 'endTime':endTime, 'pageNow':pageNow, 'pageSize':pageSize}
    version = '20200904171008'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
def QueryRemoteUpgradeTaskList(appKey, appSecret, productId, pageNow, pageSize, MasterKey, searchValue):
    path = '/aep_upgrade_management/tasks'
    head = {}
    param = {'productId':productId, 'pageNow':pageNow, 'pageSize':pageSize, 'searchValue':searchValue}
    version = '20190615001440'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None, version, application, MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
Example #23
0
def CreateRemoteControl(appKey, appSecret, MasterKey, body):
    path = '/aep_device_control/control'
    head = {}
    param = {}
    version = '20181031202247'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body,
                                                version, application,
                                                MasterKey, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #24
0
def CreateSubscription(appKey, appSecret, MasterKey, body):
    path = '/aep_subscribe_north/subscription'
    head = {}
    param = {}
    version = '20181031202018'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body,
                                                version, application,
                                                MasterKey, key, 'POST')
    if response is not None:
        return response.read()
    return None
Example #25
0
def GetSubscription(appKey, appSecret, subId, productId, MasterKey):
    path = '/aep_subscribe_north/subscription'
    head = {}
    param = {'subId': subId, 'productId': productId}
    version = '20181031202033'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None,
                                                version, application,
                                                MasterKey, key, 'GET')
    if response is not None:
        return response.read()
    return None
def BatchCreateNBDevice(appKey, appSecret, body):
    path = '/aep_nb_device_management/batchNBDevice'
    head = {}
    param = {}
    version = '20200828140355'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body,
                                                version, application, None,
                                                key, 'POST')
    if response is not None:
        return response.read()
    return None
def UpdateProduct(appKey, appSecret, body):
    path = '/aep_product_management/product'
    head = {}
    param = {}
    version = '20191018204806'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body,
                                                version, application, None,
                                                key, 'PUT')
    if response is not None:
        return response.read()
    return None
def DeleteProduct(appKey, appSecret, MasterKey, productId):
    path = '/aep_product_management/product'
    head = {}
    param = {'productId': productId}
    version = '20181031202029'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None,
                                                version, application,
                                                MasterKey, key, 'DELETE')
    if response is not None:
        return response.read()
    return None
Example #29
0
def refundInfo(appKey, appSecret, body):
    path = '/aep_order/aeporder/order/v1/refundInfo'
    head = {}
    param = {}
    version = '20190822094544'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, body,
                                                version, application, None,
                                                key, 'POST')
    if response is not None:
        return response.read()
    return None
def DeleteDeviceGroup(appKey, appSecret, productId, deviceGroupId, MasterKey):
    path = '/aep_device_group_management/deviceGroup'
    head = {}
    param = {'productId': productId, 'deviceGroupId': deviceGroupId}
    version = '20190615001601'
    application = appKey
    key = appSecret
    response = AepSdkRequestSend.sendSDKRequest(path, head, param, None,
                                                version, application,
                                                MasterKey, key, 'DELETE')
    if response is not None:
        return response.read()
    return None