def get_milestones(session, project_ids=[], milestone_ids=[], user_details=None, limit=<NUM_LIT:10>, offset=<NUM_LIT:0>):
get_milestones_data = {}<EOL>if milestone_ids:<EOL><INDENT>get_milestones_data['<STR_LIT>'] = milestone_ids<EOL><DEDENT>if project_ids:<EOL><INDENT>get_milestones_data['<STR_LIT>'] = project_ids<EOL><DEDENT>get_milestones_data['<STR_LIT>'] = limit<EOL>get_milestones_data['<STR_LIT>'] = offset<EOL>if user_details:<EOL><INDENT>get_milestones_data.update(user_details)<EOL><DEDENT>response = make_get_request(<EOL>session, '<STR_LIT>', params_data=get_milestones_data)<EOL>json_data = response.json()<EOL>if response.status_code == <NUM_LIT:200>:<EOL><INDENT>return json_data['<STR_LIT:result>']<EOL><DEDENT>else:<EOL><INDENT>raise MilestonesNotFoundException(<EOL>message=json_data['<STR_LIT:message>'],<EOL>error_code=json_data['<STR_LIT>'],<EOL>request_id=json_data['<STR_LIT>']<EOL>)<EOL><DEDENT>
Get the list of milestones