python-scripts/scripts/28_income_tax_calculator.py

24 lines
371 B
Python
Raw Normal View History

2015-09-14 02:26:43 +02:00
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)