src/Client.php
public function getAccessTokenStatus()
    {
        if (null === $this->_state->token) {
            return 0;
        }

        $remaining = $this->getTokenExpire();

        if (0 >= $remaining) {
            return -2;
        }

        if (60 >= $remaining) {
            return -1;
        }

        return 1;
    }
public function getAccessTokenStatus()
    {
        if (null === $this->_state->token) {
            return 0;
        }

        $remaining = $this->getTokenExpire();

        if (0 >= $remaining) {
            return -2;
        }

        if (60 >= $remaining) {
            return -1;
        }

        return 1;
    }
public function getAccessTokenStatus ( ) { if ( null === $ this -> _state -> token ) { return 0 ; } $ remaining = $ this -> getTokenExpire ( ) ; if ( 0 >= $ remaining ) { return - 2 ; } if ( 60 >= $ remaining ) { return - 1 ; } return 1 ; }
Gets the status of the current access token.

@return int
The status of the current access token:
-  0 No access token.
- -1 Access token will expire soon (1 minute or less).
- -2 Access token is expired.
-  1 Access token is valid.
Gets the status of the current access token .