Guest User

Untitled

a guest
Jan 22nd, 2020
76
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. >>> import taxjar
  2. >>> client = taxjar.Client(api_key='76432bff551073c1dc405e0ea2a7e73a')
  3. >>> ship_to = {'street': '2633 North Jerusalem Road', 'city': 'East Meadow', 'state': 'NY', 'country': 'US'}
  4. >>> rates = client.rates_for_location('11554', ship_to)
  5. Traceback (most recent call last):
  6. File "<stdin>", line 1, in <module>
  7. File "/users/jerry/.virtualenvs/taxjar/lib/python2.7/site-packages/taxjar/client.py", line 34, in rates_for_location
  8. return self.responder(request)
  9. File "/users/jerry/.virtualenvs/taxjar/lib/python2.7/site-packages/taxjar/response.py", line 7, in from_request
  10. return TaxJarResponse().data_from_request(request)
  11. File "/users/jerry/.virtualenvs/taxjar/lib/python2.7/site-packages/taxjar/response.py", line 15, in data_from_request
  12. self.raise_response_error(response)
  13. File "/users/jerry/.virtualenvs/taxjar/lib/python2.7/site-packages/taxjar/response.py", line 24, in raise_response_error
  14. raise error
  15. taxjar.exceptions.TaxJarResponseError: 401 Unauthorized
RAW Paste Data