or download this
public function getRequest($request,$data,$response_type){
$reqData['request']['service'] = $request;
...
function getApiKey($fields){
return hash_hmac('sha512',$fields['data'].$fields['abc'].$fields['
+xyz'],$GLOBALS['ses_secret_key']);
}