private function generateHash($data)
    {
        $key = $this->getConfig('apiKey');
        $hmac = base64_encode(hash_hmac('sha256', $data, $key, true));

        return strtr($hmac, array('+' => '-', '/' => '_', '=' => ''));
    }