src/Common/Internal/Authentication/OAuthScheme.php
public function getAuthorizationHeader($headers, $url, $queryParams, $httpMethod)
    {
        if (($this->accessToken == null)
            || ($this->accessToken->getExpiresIn() < time())
        ) {
            $this->accessToken = $this->oauthService->getAccessToken(
                $this->grantType,
                $this->accountName,
                $this->accountKey,
                $this->scope
            );
        }

        return Resources::OAUTH_ACCESS_TOKEN_PREFIX.
            $this->accessToken->getAccessToken();
    }
public function getAuthorizationHeader($headers, $url, $queryParams, $httpMethod)
    {
        if (($this->accessToken == null)
            || ($this->accessToken->getExpiresIn() < time())
        ) {
            $this->accessToken = $this->oauthService->getAccessToken(
                $this->grantType,
                $this->accountName,
                $this->accountKey,
                $this->scope
            );
        }

        return Resources::OAUTH_ACCESS_TOKEN_PREFIX.
            $this->accessToken->getAccessToken();
    }
public function getAuthorizationHeader ( $ headers , $ url , $ queryParams , $ httpMethod ) { if ( ( $ this -> accessToken == null ) || ( $ this -> accessToken -> getExpiresIn ( ) < time ( ) ) ) { $ this -> accessToken = $ this -> oauthService -> getAccessToken ( $ this -> grantType , $ this -> accountName , $ this -> accountKey , $ this -> scope ) ; } return Resources :: OAUTH_ACCESS_TOKEN_PREFIX . $ this -> accessToken -> getAccessToken ( ) ; }
Returns authorization header to be included in the request.

@param array  $headers     request headers
@param string $url         request url
@param array  $queryParams query variables
@param string $httpMethod  request http method

@see Specifying the Authorization Header section at
http://msdn.microsoft.com/en-us/library/windowsazure/dd179428.aspx

@return string
Returns authorization header to be included in the request .