I'm setting up a program to help the user with their notes for a research paper, and I'm at the point where i need to separate the client_secret.json
from the program files to keep it secure online. How do I get the creds from the json without having it as a file with the python program?
scope = ["https://spreadsheets.google.com/feeds","https://www.googleapis.com/auth/drive"]
creds = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope)
gs = gspread.authorize(creds)
In the code above, is there some way I can use the json response rather than the client_secret.json file something more like :
creds = requests.get("json storage").json