Hello Robert

You don't need to get authorized all the time. Once you are authorized can 
store the access token and refresh it every time you get an Unauthorized 
exception. The refreshing can be done using 
accessProtectedResource.executeRefreshToken().

Other than that you can also create a authorization flow instead of 
manually pasting the code. In this case the code will be sent to your 
callback url and your application can extract it from the request. This 
means your application need to be a web application.

Thanks
Gunjan Sharma

-- 
You received this message because you are subscribed to the Google Groups 
"Google Apps Domain Information and Management APIs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-apps-mgmt-apis/-/TIKSjpI_OpkJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-apps-mgmt-apis?hl=en.

Reply via email to