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.

Has someone already integrated LG ThinQ
#4
Try this for the signature calculation. You might need to swap message and secret arguments if it does not work.
Code:
function oauth2_signature(message, secret)
  local encdec = require('encdec')
  local hashed = encdec.hmacsha1(secret, message, true)
  return encdec.base64enc(hashed)
end

Use log() instead of self:debug. There are no callbacks for HTTP requests anyway, just the return values. Search the forums, there are many similar HTTP request examples available.
Reply


Messages In This Thread
RE: Has someone already integrated LG ThinQ - by admin - 08.05.2023, 12:24

Forum Jump: