Skip to content

Commit

Permalink
Merge pull request #123 from XeroAPI/interpolation_fix
Browse files Browse the repository at this point in the history
interpolation fix with double quotes for disconnect
  • Loading branch information
SerKnight authored Feb 1, 2021
2 parents be42b63 + fed2be3 commit 6cbcdf6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/xero-ruby/api_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,14 @@ def token_request(data)
def connections
@config.base_url = 'https://api.xero.com'
opts = { :header_params => {'Content-Type': 'application/json'}, :auth_names => ['OAuth2'] }
response = call_api(:GET, '/connections/', nil, opts)
response = call_api(:GET, "/connections/", nil, opts)
response[0]
end

def disconnect(connection_id)
@config.base_url = 'https://api.xero.com'
opts = { :header_params => {'Content-Type': 'application/json'}, :auth_names => ['OAuth2'] }
call_api(:DELETE, '/connections/#{connection_id}', nil, opts)
call_api(:DELETE, "/connections/#{connection_id}", nil, opts)
connections
end

Expand Down

0 comments on commit 6cbcdf6

Please sign in to comment.