title: How to get refresh token for google plus in android?
body: <p>I am using following code to get the access token for google plus. Is there a way to get the refresh token so that I can access the google API offline from the web server.</p>
  
  <pre><code>String accountName = params[0];
  String scopes = "oauth2:profile email";
  String token = null;
  try {
      token = GoogleAuthUtil.getToken(getApplicationContext(), accountName, scopes);
  } catch (IOException e) {
      Log.e(TAG, e.getMessage());
  } catch (UserRecoverableAuthException e) {
      startActivityForResult(e.getIntent(), REQ_SIGN_IN_REQUIRED);
  } catch (GoogleAuthException e) {
      Log.e(TAG, e.getMessage());
  }
  </code></pre>