Offline Access to Google and other OAuth based API – PHP OAuth API – Part 1
Some applications require access to APIs on behalf of the user even when the user is not present, i.e. offline access. OAuth is a protocol that allows applications to obtain a token to access an API when the user is not present but when the tokens expire they need to be renewed. Some APIs like Google and Box.net support automatic renewal of expired tokens. Using OAuth Tokens to Access APIs Without the User Presence OAuth is a protocol that was thought to grant external applications the permission to call Web site API functions on behalf of an user. It can be used for instance to get details of the user account like his name or even email address, manipulate personal user information like for instance uploading user pictures, execute tasks…