Changes for page 2 Script

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

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

Summary

Details

Page properties
Content
... ... @@ -349,6 +349,7 @@
349 349  end
350 350  {{/code}}
351 351  
352 +
352 352  == **1.8 How to parse value from HTTP response body** ==
353 353  
354 354  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":
... ... @@ -403,7 +403,7 @@
403 403  {{/code}}
404 404  
405 405  (% class="wikigeneratedid" %)
406 -So we decode json into lua object to assign the value into addresses HDW6060(temperature), HDW7070(humidity), the code example like follows:
407 +So we decode json into lua object to assign the value into addresses HDW6060(temperature), HDW7070(humidity) the code example like follows:
407 407  
408 408  {{code language="lua"}}
409 409  local APIkey = '70faaecf926b4341b1974006221711'