avadev/AvaTax-REST-V2-Python-SDK

Error when trying to Ping

acarter881 opened this issue · 1 comments

Hello, I'm using Python, and trying to use the API.

I've got a Sandbox account, and I used pip to install Avalara.

However, the following code does not work: TypeError: 'str' object is not callable - it's looking at print(response.text())

Any suggestions?

from avalara import AvataxClient

client = AvataxClient('my test app',
'ver 0.0',
'my test machine',
'sandbox')

response = client.ping()

to view respnse text

print(response.text())

to view json version of the response

print(response.json())

to view the status code

print(response.status_code())

to view the raw response

print(response.raw())

Well, I figured out that if I just got rid of the '.text()', I get a response code of 200.