This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

HTTP Request with body
#2
Here's an example i use for a Dutch weather API with JSON. This might help you.

--Source: http://weerlive.nl/delen.php
city = 'Amsterdam' --Vul hier de plaatsnaam in.

require('ssl.https')
require('json')

data = ssl.https.request('http://weerlive.nl/api/json-10min.php?locatie=' ..city)
datatable = json.pdecode(data)

datatable = datatable['liveweer'][1]
log(datatable)

city = datatable.plaats
log('Plaats: ' ..city)
Reply


Messages In This Thread
HTTP Request with body - by JoseJimenez94 - 23.03.2020, 12:52
RE: HTTP Request with body - by Joep - 23.03.2020, 12:57
RE: HTTP Request with body - by admin - 23.03.2020, 13:08

Forum Jump: