python-scripts/28_income_tax_calculator.py
2015-10-15 22:51:07 +01:00

24 lines
371 B
Python
Executable File

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)