public function getOauth64()
    {
        // Get a new token if it's not available or has expired
        if (null === $this->oauthToken or $this->oauthToken->hasExpired()) {
            $this->oauthToken = $this->getToken();
        }

        return base64_encode(
            'user=' .
            $this->oauthUserEmail .
            "\001auth=Bearer " .
            $this->oauthToken .
            "\001\001"
        );
    }
public function getOauth64()
    {
        // Get a new token if it's not available or has expired
        if (null === $this->oauthToken or $this->oauthToken->hasExpired()) {
            $this->oauthToken = $this->getToken();
        }

        return base64_encode(
            'user=' .
            $this->oauthUserEmail .
            "\001auth=Bearer " .
            $this->oauthToken .
            "\001\001"
        );
    }
public function getOauth64 ( ) { // Get a new token if it's not available or has expired if ( null === $ this -> oauthToken or $ this -> oauthToken -> hasExpired ( ) ) { $ this -> oauthToken = $ this -> getToken ( ) ; } return base64_encode ( 'user=' . $ this -> oauthUserEmail . "\001auth=Bearer " . $ this -> oauthToken . "\001\001" ) ; }
Generate a base64-encoded OAuth token.

@return string
Generate a base64 - encoded OAuth token .