25.01.2019, 07:24
Here's a minimal example, you need to provide a valid token for it to work:
Code:
json = require('json')
http = require('socket.http')
escape = require('socket.url').escape
token = '...'
url = 'http://www.energyhive.com/mobile_proxy/getCurrentValuesSummary?token=' .. escape(token)
res = http.request(url)
res = json.pdecode(res)
log(res)