<# call "http://ip-api.com/json/<#[system.remote_addr]#>" to response; print bucket response; #>
response: Array ( [status] => success [country] => United States [countryCode] => US [region] => OH [regionName] => Ohio [city] => Dublin [zip] => 43017 [lat] => 40.0992 [lon] => -83.1141 [timezone] => America/New_York [isp] => Amazon.com, Inc. [org] => AWS EC2 (us-east-2) [as] => AS16509 Amazon.com, Inc. [query] => 18.217.10.200 )
<#[response.query as html]#> ⇒ | 18.217.10.200 |
<#[response.status as html]#> ⇒ | success |
<#[response.timezone as html]#> ⇒ | America/New_York |
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.