def type(self, type_id, only_message=True):
request_url = build_url_endpoint(<EOL>'<STR_LIT:/>'.join([self.ENDPOINT, str(type_id)])<EOL>)<EOL>request_params = {}<EOL>result = self.do_http_request(<EOL>'<STR_LIT>',<EOL>request_url,<EOL>data=request_params,<EOL>custom_header=str(self.etiquette)<EOL>)<EOL>if result.status_code == <NUM_LIT>:<EOL><INDENT>return<EOL><DEDENT>result = result.json()<EOL>return result['<STR_LIT:message>'] if only_message is True else result<EOL>
This method retrive a crossref document type metadata related to the
given type_id.

args: Crossref allowed document Types (String)

Example:
    >>> types.type('journal-article')
    {'label': 'Journal Article', 'id': 'journal-article'}