I have checked all examples but none shows endpoint like mine. How do I access API with endpoint such that :
end_point = f"https://something.com/version/input1/{0}/input2/{1}".format(payload["input1"], payload["input2"])
api_token = {"authorization": "Bearer LonGTokEN"}
api_response = requests.post(url=end_point, auth=api_token['authorization'])
I'm getting TypeError: 'str' object is not callable
. Based on this solution, I need data
but I'm not sure how I should do it with my endpoint.
Also, unsure if the bearer token is called correctly or not.
Please help. Thank you.