public function sign(array $data)
    {
        ksort($data);

        $queryString = $this->buildQueryString($data);
        $data['h'] = base64_encode(hash_hmac('sha1', $queryString, $this->clientSecret, true));

        return $data;
    }
public function sign(array $data)
    {
        ksort($data);

        $queryString = $this->buildQueryString($data);
        $data['h'] = base64_encode(hash_hmac('sha1', $queryString, $this->clientSecret, true));

        return $data;
    }
public function sign ( array $ data ) { ksort ( $ data ) ; $ queryString = $ this -> buildQueryString ( $ data ) ; $ data [ 'h' ] = base64_encode ( hash_hmac ( 'sha1' , $ queryString , $ this -> clientSecret , true ) ) ; return $ data ; }
Signs an array by calculating a signature and setting it on the 'h' key.

@param array $data
@return array
Signs an array by calculating a signature and setting it on the h key .