Open AI API printing response

I am using Python to request tweets for my bot through the API i need it to print the response when given an edit prompt how do i do this is it something i add to my code?