public function getHeaders(CredentialsInterface $credentials, $method, $url, array $bodyParameters = array())
    {
        $header = $this->protocolHeader(strtoupper($method), $url, $credentials, $bodyParameters);
        $authorizationHeader = array('Authorization' => $header);
        $headers = $this->buildHttpClientHeaders($authorizationHeader);

        return $headers;
    }
public function getHeaders(CredentialsInterface $credentials, $method, $url, array $bodyParameters = array())
    {
        $header = $this->protocolHeader(strtoupper($method), $url, $credentials, $bodyParameters);
        $authorizationHeader = array('Authorization' => $header);
        $headers = $this->buildHttpClientHeaders($authorizationHeader);

        return $headers;
    }
public function getHeaders ( CredentialsInterface $ credentials , $ method , $ url , array $ bodyParameters = array ( ) ) { $ header = $ this -> protocolHeader ( strtoupper ( $ method ) , $ url , $ credentials , $ bodyParameters ) ; $ authorizationHeader = array ( 'Authorization' => $ header ) ; $ headers = $ this -> buildHttpClientHeaders ( $ authorizationHeader ) ; return $ headers ; }
Get all headers required to created an authenticated request.

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

@return array
Get all headers required to created an authenticated request .