'Returns a single remote document
:param doctype: DocType of the document to be returned
:param name: (optional) `name` of the document to be returned
:param filters: (optional) Filter by this dict if name is not set
:param fields: (optional) Fields to be returned, will return everythign if not set'

def get_doc(self, doctype, name='', filters=None, fields=None):

    params = {}
    if filters:
        params['filters'] = json.dumps(filters)
    if fields:
        params['fields'] = json.dumps(fields)
    res = self.session.get(((((self.url + '/api/resource/') + doctype) + '/') + name), params=params, verify=self.verify)
    return self.post_process(res)
