def acquire_token_with_refresh_token(
      refresh_token, client_cred, resource = nil)
      fail_if_arguments_nil(refresh_token, client_cred)
      token_request_for(client_cred)
        .get_with_refresh_token(refresh_token, resource)
    end
def acquire_token_with_refresh_token(
      refresh_token, client_cred, resource = nil)
      fail_if_arguments_nil(refresh_token, client_cred)
      token_request_for(client_cred)
        .get_with_refresh_token(refresh_token, resource)
    end
Gets an access token using a previously acquire refresh token.

 @param String refresh_token
   The previously acquired refresh token.
 @param String|ClientCredential|ClientAssertion|ClientAssertionCertificate
   The client application can be validated in four different manners,
   depending on the OAuth flow. This object must support #request_params.
 @optional String resource
   The resource being requested.
 @return TokenResponse