Issue with API authorization for attachment export to google drive

Good afternoon,

I am trying to get a python script that will fetch all attachments of our freshdesk account, a specific group, to a specific google drive. I use Python 3.11 and AI, since i am not familiar with programming but have a basic only understanding.

So far, i have made multiple attempts. All my failures have to do with the authentication. I used Postman to troubleshoot the authentication with a simple GET request, the basic authentication worked there. I always get 400 and 401 errors, in every single attempt, and the most common is the “Failed to retrieve tickets. Status Code: 401”. Here is a picture of the script. Any ideas?