We have a web service(GET) that takes a complex JSON with lists, How do I set it up so that requests sends the generated data as json and not through query string?
Here's the simplified version of the current code and I keep on getting error 403:
def build_get_request_params(table_name):
data = {'table_data': table_name}
return data
def get_table_data_prefixed(table_name):
built = build_get_request_params(table_name)
response = requests.get("https://www.endpoint", data=json.dump(built))
print(response.json())