def getcentresurl(idcentre, *args, **kwargs):
getparams = []<EOL>if kwargs:<EOL><INDENT>try:<EOL><INDENT>if kwargs["<STR_LIT>"] == True:<EOL><INDENT>getparams.append("<STR_LIT>")<EOL><DEDENT>else:<EOL><INDENT>getparams.append("<STR_LIT>")<EOL><DEDENT><DEDENT>except Exception as ex:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>getparams.append("<STR_LIT>" % kwargs["<STR_LIT>"])<EOL><DEDENT>except Exception as ex:<EOL><INDENT>pass<EOL><DEDENT>try:<EOL><INDENT>getparams.append("<STR_LIT>" % kwargs["<STR_LIT>"])<EOL><DEDENT>except Exception as ex:<EOL><INDENT>pass<EOL><DEDENT><DEDENT>centreidparam = "<STR_LIT>" if idcentre == "<STR_LIT>" else "<STR_LIT:/>"+idcentre<EOL>url = getmambuurl(*args, **kwargs) + "<STR_LIT>" + centreidparam + ("<STR_LIT>" if len(getparams) == <NUM_LIT:0> else "<STR_LIT:?>" + "<STR_LIT:&>".join(getparams) )<EOL>return url<EOL>
Request Centres URL.

    If idcentre is set, you'll get a response adequate for a MambuCentre object.
    If not set, you'll get a response adequate for a MambuCentres object.
    See mambucentre module and pydoc for further information.

    Currently implemented filter parameters:
    * fullDetails
    * limit
    * offset

    See Mambu official developer documentation for further details, and
    info on parameters that may be implemented here in the future.