def get_metadata(self):
try:<EOL><INDENT>r = requests.get('<STR_LIT>', auth=self)<EOL><DEDENT>except requests.exceptions.RequestException as e:<EOL><INDENT>raise e<EOL><DEDENT>else:<EOL><INDENT>r.raise_for_status()<EOL>output = r.json()<EOL>if '<STR_LIT:error>' in output:<EOL><INDENT>raise requests.exceptions.RequestException(output['<STR_LIT:error>'])<EOL><DEDENT>return output<EOL><DEDENT>
Get the metadata returned after authentication