src/Api/Client.php
public function getAccessToken()
    {
        //Check if AccessToken needs to be refreshed
        $now = time();
        $time = time();
        $difference = $this->access_token_expire - $time;
        if ($difference < strtotime('15 minutes', 0)) {
            $this->refreshAccessToken();
        }

        return $this->access_token;
    }
public function getAccessToken()
    {
        //Check if AccessToken needs to be refreshed
        $now = time();
        $time = time();
        $difference = $this->access_token_expire - $time;
        if ($difference < strtotime('15 minutes', 0)) {
            $this->refreshAccessToken();
        }

        return $this->access_token;
    }
public function getAccessToken ( ) { //Check if AccessToken needs to be refreshed
 $ now = time ( ) ; $ time = time ( ) ; $ difference = $ this -> access_token_expire - $ time ; if ( $ difference < strtotime ( '15 minutes' , 0 ) ) { $ this -> refreshAccessToken ( ) ; } return $ this -> access_token ; }
Get current Hail API OAuth Access token
Will refresh the token from the API if it has expired

@return string
Get current Hail API OAuth Access token Will refresh the token from the API if it has expired