code: def create_record(self, name, content, username, password):
          ''' Create record '''
          #headers = {'key': username, 'secret': password}
          req = requests.post(self.api_server + '/api/' + name,
                              data=json.dumps(content), auth=(username, password))
          return ref create_record(self, name, content, username, password):
          ''' Create record '''
          #headers = {'key': username, 'secret': password}
          req = requests.post(self.api_server + '/api/' + name,
                              data=json.dumps(content), auth=(username, password))
          return req
docs: Create record