code: def get_hmac(message):
      
      key = current_app.config['WEBHOOKS_SECRET_KEY']
      hmac_value = hmac.new(
          key.encode('utf-8') if hasattr(key, 'encode') else key,
          message.encode('utf-8') if hasattr(message, 'encode') else message,
          sha1
      ).hexdigest()
      return hmac_value
docs: Calculate HMAC value of message using ``WEBHOOKS_SECRET_KEY``.
  
      :param message: String to calculate HMAC for.