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



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

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



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

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