def user_getmedia(userids=None, **connection_args):
 conn_args = _login(**connection_args)
 try:
  if conn_args:
   method = 'usermedia.get'
   if userids:
    params = {'userids': userids}
   else:
    params = {}
   params = _params_extend(params, **connection_args)
   ret = _query(method, params, conn_args['url'], conn_args['auth'])
   return ret['result']
  else:
   raise KeyError
 except KeyError:
  return False

def user_getmedia ( userids = None , ** connection_args ) : conn_args = _login ( ** connection_args ) try : if conn_args : method = 'usermedia.get' if userids : params = { 'userids' : userids } else : params = { } params = _params_extend ( params , ** connection_args ) ret = _query ( method , params , conn_args [ 'url' ] , conn_args [ 'auth' ] ) return ret [ 'result' ] else : raise KeyError except KeyError : return False
retrieve media according to the given parameters note: this function accepts all standard usermedia .