'Insert a document to the remote server
:param doc: A dict or Document object to be inserted remotely'

def insert(self, doc):

    res = self.session.post(((self.url + '/api/resource/') + doc.get('doctype')), data={'data': frappe.as_json(doc)}, verify=self.verify)
    return self.post_process(res)
