From 347add3d2ccd7f8d52f314fc4bc683241105c722 Mon Sep 17 00:00:00 2001 From: warunawijesinhaarachchige <100723638+warunawijesinhaarachchige@users.noreply.github.com> Date: Tue, 12 Apr 2022 02:05:24 -0700 Subject: [PATCH] Python code sample fixed (#463) Python code sample was not working. It is fixed now --- docs/async-api/overview/text/post-text.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/async-api/overview/text/post-text.md b/docs/async-api/overview/text/post-text.md index e64403ab..0dc465ac 100644 --- a/docs/async-api/overview/text/post-text.md +++ b/docs/async-api/overview/text/post-text.md @@ -201,7 +201,7 @@ payload = { "confidenceThreshold": 0.6, # - "detectPhrases": true, + "detectPhrases": "true", # "messages": [ @@ -238,7 +238,7 @@ responses = { 500: 'Something went wrong! Please contact support@symbl.ai' } -response = requests.request("POST", url, headers=headers, data=json.dumps(payload), params=json.dumps(params))) +response = requests.request("POST", url, headers=headers, data=json.dumps(payload)) if response.status_code == 201: # Successful API execution @@ -435,4 +435,4 @@ Here value of `X` can be found in [FAQ](/docs/faq). :::caution You must wait for the job to complete processing before you proceed with getting the Conversation Intelligence. If you immediately make a GET request to Conversation API, it is possible that you'll receive incomplete insights. Therefore, ensure that you wait for the job to complete. -::: \ No newline at end of file +:::