def getDataItemInfo(server, port, adminUser,  adminPass, dataItemPath, useSSL=True, token=None):    
    
    
    if token is None:    
        token = gentoken(server, port, adminUser, adminPass, useSSL)    
        
    dataItemInfo = {}       
    URL = "{}{}{}/arcgis/admin/data/items{}?f=pjson&token={}".format(getProtocol(useSSL), server, getPort(port), dataItemPath, token)    

    dataItemInfo = json.loads(urllib2.urlopen(URL).read())
    
    if dataItemInfo.get('status'):
        # The 'status' key only exists if there is an error.
        success = False
    else:
        success = True
        
    return success, dataItemInfo
Returns the categories of the product.
dataset/ETHPy150Open Esri/ops-server-config/SupportFiles/AGSRestFunctions.py/getDataItemInfo--crossover with--dataset/ETHPy150Open diefenbach/django-lfs/lfs/catalog/models.py/Product.get_categories