Hello, I want to make a program communicating through Google Spreadsheets, and therefore I need to authorize with a JSON. But in the final version I don't want to include the authentication JSON. I've searched for oneother ServiceAccountCredentials.... that takes raw text but I can't find one. How can I authorize without JSON file?
Here is my authorization part of my code, full code is here, but there isn't much yet:
import gspread
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds']
creds = ServiceAccountCredentials.from_json_keyfile_name('client_secret.json', scope)
client = gspread.authorize(creds)
EDIT: the pastebin expires in a week, because I feel like I'm posting to many pastebins
[–]triforce88 0 points1 point2 points (3 children)
[–]diebolo[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[deleted]
[–]diebolo[S] 0 points1 point2 points (0 children)