AWS provides us an SDK way to interact with WebSocket APIs, post_to_connection, delete_connection, get_connection
But how can we invoke the APIs from HTTP, which means a kind of python requests
thing?
What I tried?
Here I'm struggling to find an example for how to sign a request for an API Gateway service.
Here is the code to invoke web socket APIs using python-requests:
In the below code, replace aws_region, and api_id with your data.
You can use get_connection, post_connection, delete_connection to get connection details, post msg to connection, and delete connection.