public function setToken($token = null)
    {
        if ( ! $token and $this->session->has('googleapi_token') )
        {
            $token = $this->session->get('googleapi_token');
        }

        return $this->client->setAccessToken($token);
    }
public function setToken($token = null)
    {
        if ( ! $token and $this->session->has('googleapi_token') )
        {
            $token = $this->session->get('googleapi_token');
        }

        return $this->client->setAccessToken($token);
    }
public function setToken ( $ token = null ) { if ( ! $ token and $ this -> session -> has ( 'googleapi_token' ) ) { $ token = $ this -> session -> get ( 'googleapi_token' ) ; } return $ this -> client -> setAccessToken ( $ token ) ; }
Set an access token
@return  bool
Set an access token