<# call "https://qrng.anu.edu.au/API/jsonI.php?length=1&type=uint8" to response; print bucket response; #>
response: Array ( [type] => uint8 [length] => 1 [data] => Array ( [0] => 133 ) [success] => 1 )
<#[response as html]#> ⇒ | {"type":"uint8","length":1,"data":[133],"success":true} |
<#[response.data.0 as html]#> ⇒ | 133 |
The Hashtag Markup Language provides methods to Call external APIs, and process any response.
The response text is saved to the named Hashtag Variable. If the response is JSON encoded, it will be decoded into Hashtag Buckets.
Optional parameters can be sent with the call. The values in the named Hashtag Bucket will be sent with the request as HTTP POST variables.