Google+ API: How can I use RefreshTokens to avoid requesting access every time my app launches?

Here is an example. Make sure you add a string setting called RefreshToken and reference System.Security or find another way to safely store the refresh token. private static byte[] aditionalEntropy = { 1, 2, 3, 4, 5 }; private static IAuthorizationState GetAuthorization(NativeApplicationClient arg) { // Get the auth URL: IAuthorizationState state = new AuthorizationState(new[] { … Read more

Bulk-fetching emails in the new Gmail API

Here is an example of batch request in Java where I get all the threads using threads ids. This can be easily adapted for your need. BatchRequest b = service.batch(); //callback function. (Can also define different callbacks for each request, as required) JsonBatchCallback<Thread> bc = new JsonBatchCallback<Thread>() { @Override public void onSuccess(Thread t, HttpHeaders responseHeaders) … Read more