parameters: (ref, text, index_count="off", skip_links=False, server="", API_KEY="", dump_json=False)
return_statement: return http_request(url, params=params, body=body, json_payload=text, method="POST")
docstring: :param ref:
      :param text:
      :param index_count:
      :param skip_links:
      :param server:
      :return:`
docstring_summary: :param ref:
      :param text:
      :param index_count:
      :param skip_links:
      :param server:
      :return:`
docstring_tokens: : param ref : : param text : : param index_count : : param skip_links : : param server : : return :
function: def post_text(ref, text, index_count="off", skip_links=False, server="", API_KEY="", dump_json=False):
      """
      :param ref:
      :param text:
      :param index_count:
      :param skip_links:
      :param server:
      :return:`
      """
      if dump_json:
          with open('text_dump.json', 'w') as fp:
              json.dump(text, fp)
      ref = ref.replace(" ", "_")
      url = server+'/api/texts/'+ref
      params, body = {}, {'apikey': API_KEY}
      if 'status' not in params:
          params['status'] = 'locked'
      if index_count == "on":
          params['count_after'] = 1
      if skip_links:
          params['skip_links'] = True
      return http_request(url, params=params, body=body, json_payload=text, method="POST")
function_tokens: def post_text ( ref , text , index_count = "off" , skip_links = False , server = "" , API_KEY = "" , dump_json = False ) : if dump_json : with open ( 'text_dump.json' , 'w' ) as fp : json . dump ( text , fp ) ref = ref . replace ( " " , "_" ) url = server + '/api/texts/' + ref params , body = { } , { 'apikey' : API_KEY } if 'status' not in params : params [ 'status' ] = 'locked' if index_count == "on" : params [ 'count_after' ] = 1 if skip_links : params [ 'skip_links' ] = True return http_request ( url , params = params , body = body , json_payload = text , method = "POST" )