Telldus Live API connection in LUUP

Found some code regarding dropbox webcam uploader and rewrote my script. Now the code test in Vera seems to accept this…

##########
local http=require(“socket.http”)
local https = require (“ssl.https”)

local public_key = “xxx”
local private_key = “xxx”
local token = “xxx”
local token_secret = “xxx”

local telldus_url=“http://api.telldus.com/json/sensor/info
local now=os.time()
local nonce = now
local post_headers=“realm="”…telldus_url…“", oauth_timestamp="”…now…“", oauth_version="1.0", oauth_signature_method="PLAINTEXT", oauth_consumer_key="”…public_key…“", oauth_token="”…token…“", oauth_signature="”…private_key…“%26”…token_secret…“", oauth_nonce="”…nonce…“"”

local response = http.request {
method = “GET”;
url = telldus_url;
headers =
{
[“Authorization”] = "OAuth "…post_headers;
};
}