bolandfranck - 2013-05-24 09:22:08
Hi,
For the first, thank you for this class.
I use it for a google api calendar web application.
All work fine, except the offline refresh token.
When i use it after 2 hours, i can't connect to google.
In the offline part of my apps i call functions like that :
if($OAuthClient->Initialize())
{
$Success = $OAuthClient->CallAPI('https://www.googleapis.com/calendar/xxxxxx','GET', array(), array('FailOnAccessError'=>true), $UserData);
}
I have this error : the access token is not set to a valid value\nOAuth client: Query: SELECT id, session, state, access_token, access_token_secret, expiry, authorized, type, server, creation, refresh_token FROM oauth_session WHERE user=? AND server=?
\nOAuth client: The OAuth access token expired in 2013-05-23 16:27:56
\nOAuth client: Error: the access token is not set to a valid value
Can you help me please ?