0
votes

I have a website hosted using Python on Django framework. There's a logout button and the requirement is to call some APIs before logging out. I am easily able to call those APIs using requests.Session.get. However, I am supposed to make an Ajax call to one of the API. Can someone please guide me what approach I should be following?