public function getStringToSign(RequestInterface $request, $timestamp, $nonce)
    {
        $params = $this->getParamsToSign($request, $timestamp, $nonce);

        // Convert booleans to strings.
        $params = $this->prepareParameters($params);

        // Build signing string from combined params
        $parameterString = new QueryString($params);

        $url = Url::factory($request->getUrl())->setQuery('')->setFragment(null);

        return strtoupper($request->getMethod()) . '&'
             . rawurlencode($url) . '&'
             . rawurlencode((string) $parameterString);
    }
public function getStringToSign(RequestInterface $request, $timestamp, $nonce)
    {
        $params = $this->getParamsToSign($request, $timestamp, $nonce);

        // Convert booleans to strings.
        $params = $this->prepareParameters($params);

        // Build signing string from combined params
        $parameterString = new QueryString($params);

        $url = Url::factory($request->getUrl())->setQuery('')->setFragment(null);

        return strtoupper($request->getMethod()) . '&'
             . rawurlencode($url) . '&'
             . rawurlencode((string) $parameterString);
    }
public function getStringToSign ( RequestInterface $ request , $ timestamp , $ nonce ) { $ params = $ this -> getParamsToSign ( $ request , $ timestamp , $ nonce ) ; // Convert booleans to strings. $ params = $ this -> prepareParameters ( $ params ) ; // Build signing string from combined params $ parameterString = new QueryString ( $ params ) ; $ url = Url :: factory ( $ request -> getUrl ( ) ) -> setQuery ( '' ) -> setFragment ( null ) ; return strtoupper ( $ request -> getMethod ( ) ) . '&' . rawurlencode ( $ url ) . '&' . rawurlencode ( ( string ) $ parameterString ) ; }
Calculate string to sign

@param RequestInterface $request   Request to generate a signature for
@param int              $timestamp Timestamp to use for nonce
@param string           $nonce

@return string
Calculate string to sign