module Quickeebooks::Shared::Service::AccessToken

Public Instance Methods

disconnect() click to toggle source

see ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0025_Intuit_Anywhere/0060_Reference/3001_Disconnect_API

# 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
reconnect() click to toggle source

see ipp.developer.intuit.com/0010_Intuit_Partner_Platform/0025_Intuit_Anywhere/0060_Reference/3002_Reconnect_API

# 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