Showing
1 changed file
with
2 additions
and
3 deletions
... | @@ -99,12 +99,11 @@ async function handleEvent(event) { | ... | @@ -99,12 +99,11 @@ async function handleEvent(event) { |
99 | request.post(options, function (error, response, body) { | 99 | request.post(options, function (error, response, body) { |
100 | let jsonResponse = JSON.stringify(JSON.parse(body), null, ' '); | 100 | let jsonResponse = JSON.stringify(JSON.parse(body), null, ' '); |
101 | jsonResponse=jsonResponse.toString() | 101 | jsonResponse=jsonResponse.toString() |
102 | - console.log(jsonResponse); | ||
103 | text=''; | 102 | text=''; |
104 | while(jsonResponse.indexOf('text')!=-1) | 103 | while(jsonResponse.indexOf('text')!=-1) |
105 | { | 104 | { |
106 | - jsonResponse=jsonResponse.substring(jsonResponse.indexOf('text\\')+7); | 105 | + jsonResponse=jsonResponse.substring(jsonResponse.indexOf('text\\')+9); |
107 | - text+=jsonResponse.substring(0,jsonResponse.indexOf("\\")-1)+" "; | 106 | + text+=jsonResponse.substring(0,jsonResponse.indexOf("\\"))+" "; |
108 | 107 | ||
109 | } | 108 | } |
110 | 109 | ... | ... |
-
Please register or login to post a comment