Module: Quickeebooks::Shared::Service::AccessToken

Included in:
Online::Service::AccessToken, Windows::Service::AccessToken
Defined in:
lib/quickeebooks/shared/service/access_token.rb

Instance Method Summary collapse

Instance Method Details

#disconnectObject



32
33
34
35
36
37
38
39
# File 'lib/quickeebooks/shared/service/access_token.rb', line 32

def disconnect
  response = do_http_get("https://appcenter.intuit.com/api/v1/Connection/Disconnect")
  if response && response.code.to_i == 200
    Quickeebooks::Shared::Service::AccessTokenResponse.from_xml(response.body)
  else
    nil
  end
end

#reconnectObject



22
23
24
25
26
27
28
29
# File 'lib/quickeebooks/shared/service/access_token.rb', line 22

def reconnect
  response = do_http_get("https://appcenter.intuit.com/api/v1/Connection/Reconnect")
  if response && response.code.to_i == 200
    Quickeebooks::Shared::Service::AccessTokenResponse.from_xml(response.body)
  else
    nil
  end
end