def prepare_iter_request(<EOL>url: Union[methods, str],<EOL>data: MutableMapping,<EOL>*,<EOL>iterkey: Optional[str] = None,<EOL>itermode: Optional[str] = None,<EOL>limit: int = <NUM_LIT:200>,<EOL>itervalue: Optional[Union[str, int]] = None,<EOL>) -> Tuple[MutableMapping, str, str]:
itermode, iterkey = find_iteration(url, itermode, iterkey)<EOL>if itermode == "<STR_LIT>":<EOL><INDENT>data["<STR_LIT>"] = limit<EOL>if itervalue:<EOL><INDENT>data["<STR_LIT>"] = itervalue<EOL><DEDENT><DEDENT>elif itermode == "<STR_LIT>":<EOL><INDENT>data["<STR_LIT:count>"] = limit<EOL>if itervalue:<EOL><INDENT>data["<STR_LIT>"] = itervalue<EOL><DEDENT><DEDENT>elif itermode == "<STR_LIT>":<EOL><INDENT>data["<STR_LIT:count>"] = limit<EOL>if itervalue:<EOL><INDENT>data["<STR_LIT>"] = itervalue<EOL><DEDENT><DEDENT>return data, iterkey, itermode<EOL>
Prepare outgoing iteration request

Args:
    url: :class:`slack.methods` item or string of url
    data: Outgoing data
    limit: Maximum number of results to return per call.
    iterkey: Key in response data to iterate over (required for url string).
    itermode: Iteration mode (required for url string) (one of `cursor`, `page` or `timeline`)
    itervalue: Value for current iteration (cursor hash, page or timestamp depending on the itermode)
Returns:
    :py:class:`tuple` (data, iterkey, itermode)