Google Cloud Print: How long is the token good for (to submit jobs to cloud print)? -


How can I get credentials if my user uses Oath v2 for Cloud Print to get the credentials Am I at least 48 hours?

We need to get access to the printer, and it should be kept for a few days. (It appears that we can rewrite the user once or twice a week once or twice, but certainly not more.)

If Google Cloud Print can not do this, then Which systems can do? (Requires cross-platform printing, wins from the cloud, OSX and Linux, the ability to do raw printing only on local printers is required, not just printing printer printing.)

Thanks !

There are two types of "credentials" in the OAuth2 process: Access token ( Its lifetime is low and it is determined by the expires_in field of the OAuth2 server response) and refresh token which is virtually permanent unless the user granted permission to cancel Is not done. You can get a valid access token when you receive a fresh token.

The first method with refresh token parameter access_type = offline is returned to the request. You only have to safely store the Safe Refresh token and use it to request an access token as needed.

Read more in the document

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -