import * as crypto from 'crypto';
export function createHmacSha256(secret: string, url: string, data: any): string {
const message = url + JSON.stringify(data);
const hmac = crypto.createHmac('sha256', secret);
hmac.update(message);
return hmac.digest('hex');
}
{
'Content-Type': 'application/json',
'Accept-Encoding': 'application/json',
'Hype-Hash': '35d334e534211b109e2563c8bd4c945ce1055c9fbc0a6dc01efa7d2338df4e0e'
}