Skip to content

@mega-yfue/eufy-sdk / signRequest

Function: signRequest() ​

ts
function signRequest(
   shareKeyHex, 
   ts, 
   once, 
   encBodyB64?
): string;

x-signature = HMAC-SHA256(signKey(shareKey), [ts, once, encBody?].join("+")). encBody is the ENCRYPTED body actually sent; omit for empty-body requests.

Parameters ​

shareKeyHex ​

string

ts ​

string

once ​

string

encBodyB64? ​

string

Returns ​

string

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.