def generate_api(version):
def get_partial_api(key, token=None):<EOL><INDENT>return TrelloAPI(ENDPOINTS[version], version, key, token=token)<EOL><DEDENT>get_partial_api.__doc__ ="""<STR_LIT>""".format(version)<EOL>return get_partial_api<EOL>
Generates a factory function to instantiate the API with the given
version.