python-scripts/28_income_tax_calculator.py
2015-09-13 18:26:43 -06:00

24 lines
371 B
Python

import requests
headers = {
'Content-Type': 'application/x-www-form-urlencoded',
'Accept': 'application/json',
}
data = {
'pay_rate': '10000',
'filing_status': 'single',
'pay_periods': 1,
'state': 'CO',
'year':
'2014'
}
r = requests.post(
'http://taxee.io/api/v1/calculate/2014',
data=data,
headers=headers
)
print(r.text)