def acquire_token_with_authorization_code(
      auth_code, redirect_uri, client_cred, resource = nil)
      fail_if_arguments_nil(auth_code, redirect_uri, client_cred)
      token_request_for(client_cred)
        .get_with_authorization_code(auth_code, redirect_uri, resource)
    end
def acquire_token_with_authorization_code(
      auth_code, redirect_uri, client_cred, resource = nil)
      fail_if_arguments_nil(auth_code, redirect_uri, client_cred)
      token_request_for(client_cred)
        .get_with_authorization_code(auth_code, redirect_uri, resource)
    end
Gets an access token with a previously acquire authorization code.

 @param String auth_code
   The authorization code that was issued by the authorization server.
 @param URI redirect_uri
   The URI that was passed to the authorization server with the request
   for the authorization code.
 @param ClientCredential|ClientAssertion|ClientAssertionCertificate
   An object that validates the client application by adding
   #request_params to the OAuth request.
 @optional String resource
   The resource being requested.
 @return TokenResponse