it is my first stab at Python. I'm using 3.10 (current stable version for Windows). My problem at hand : a) to make a call to rest api and to confirm connection is/was successful.
I have already followed this link : How to save a file to a specific directory in python?
and will share my code that I have tried below. AND I was actually running my script on Python terminal vs on CMD . I'm now running the below script on CMD.
import requests
import base64
pat = "where do I put user name and password"
authorization = str(base64.b64encode(bytes(':'+pat, 'ascii')), 'ascii')
url="hhttps://FileStorage/MARKETING/"
so Question 1) how do I connect correctly to the url provided I pass the correct/pw .
thanks and fire away with more questions/ details that is required.