protected function protocolHeader($method, $uri, CredentialsInterface $credentials, array $bodyParameters = array())
    {
        $parameters = array_merge(
            $this->baseProtocolParameters(),
            $this->additionalProtocolParameters(),
            array(
                'oauth_token' => $credentials->getIdentifier(),
            )
        );

        $this->signature->setCredentials($credentials);

        $parameters['oauth_signature'] = $this->signature->sign(
            $uri,
            array_merge($parameters, $bodyParameters),
            $method
        );

        return $this->normalizeProtocolParameters($parameters);
    }
protected function protocolHeader($method, $uri, CredentialsInterface $credentials, array $bodyParameters = array())
    {
        $parameters = array_merge(
            $this->baseProtocolParameters(),
            $this->additionalProtocolParameters(),
            array(
                'oauth_token' => $credentials->getIdentifier(),
            )
        );

        $this->signature->setCredentials($credentials);

        $parameters['oauth_signature'] = $this->signature->sign(
            $uri,
            array_merge($parameters, $bodyParameters),
            $method
        );

        return $this->normalizeProtocolParameters($parameters);
    }
protected function protocolHeader ( $ method , $ uri , CredentialsInterface $ credentials , array $ bodyParameters = array ( ) ) { $ parameters = array_merge ( $ this -> baseProtocolParameters ( ) , $ this -> additionalProtocolParameters ( ) , array ( 'oauth_token' => $ credentials -> getIdentifier ( ) , ) ) ; $ this -> signature -> setCredentials ( $ credentials ) ; $ parameters [ 'oauth_signature' ] = $ this -> signature -> sign ( $ uri , array_merge ( $ parameters , $ bodyParameters ) , $ method ) ; return $ this -> normalizeProtocolParameters ( $ parameters ) ; }
Generate the OAuth protocol header for requests other than temporary
credentials, based on the URI, method, given credentials & body query
string.

@param string               $method
@param string               $uri
@param CredentialsInterface $credentials
@param array                $bodyParameters

@return string
Generate the OAuth protocol header for requests other than temporary credentials based on the URI method given credentials & body query string .