def _multi_call(function, contentkey, *args, **kwargs):
 ret = function(*args, **kwargs)
 position = ret.get('position')
 while position:
  more = function(position=position, *args, **kwargs)
  ret[contentkey].extend(more[contentkey])
  position = more.get('position')
 return ret.get(contentkey)

def _multi_call ( function , contentkey , * args , ** kwargs ) : ret = function ( * args , ** kwargs ) position = ret . get ( 'position' ) while position : more = function ( position = position , * args , ** kwargs ) ret [ contentkey ] . extend ( more [ contentkey ] ) position = more . get ( 'position' ) return ret . get ( contentkey )
retrieve full list of values for the contentkey from a boto3 apigateway client function that may be paged via position .