construct is no longer needed, $data is already an array
added hmac_key parameter
Support for API v14 with HMAC Hash calculation