I am using python request to fetch data from an API
The API I am using gives this in their documentation:
response = session.get(url, params=parameters)
But the tutorial I read uses:
tes = requests.get(url, headers={'Accept': 'application/json'}, params={'term': 'cat', 'limit': 1})
What is the difference and what should I use?