Changes for page 2 Script

Last modified by Devin Chen on 2025/06/06 14:03

From version 29.1
edited by Hunter
on 2022/11/21 17:30
Change comment: There is no comment for this version
To version 31.1
edited by Hunter
on 2022/11/22 09:47
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -349,7 +349,6 @@
349 349  end
350 350  {{/code}}
351 351  
352 -
353 353  == **1.8 How to parse value from HTTP response body** ==
354 354  
355 355  This example use [[https:~~/~~/www.weatherapi.com/>>https://www.weatherapi.com/]] as example, to show how to parse value from HTTP response body. When we input the city name into address "@HDW5050":
... ... @@ -404,7 +404,7 @@
404 404  {{/code}}
405 405  
406 406  (% class="wikigeneratedid" %)
407 -So we decode json into lua object to assign the value into addresses HDW6060(temperature), HDW7070(humidity) the code example like follows:
406 +So we decode json into lua object to assign the value into addresses HDW6060(temperature), HDW7070(humidity), the code example like follows:
408 408  
409 409  {{code language="lua"}}
410 410  local APIkey = '70faaecf926b4341b1974006221711'