def __search__(portal, query=None, numResults=100, sortField='numviews', sortOrder='desc', start=0, token=None):
    params = {
        'q': query,
        'num': numResults,
        'sortField': sortField,
        'sortOrder': sortOrder,
        'f': 'json',
        'start': start
    }
    if token:
        params['token'] = token # Adding a token provides an authenticated search.
    request = portal + '/sharing/rest/search?' + urllib.urlencode(params)
    results = json.loads(urllib.urlopen(request).read())
    return results
Get integer logo option.
dataset/ETHPy150Open Esri/ago-tools/agoTools/utilities.py/__search__--crossover with--dataset/ETHPy150Open disqus/playa/playa/lib/vlc.py/MediaPlayer.video_get_logo_int