Changes for page 2 Script
Last modified by Devin Chen on 2025/06/06 14:03
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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'