I'm trying to make a function for creating Excel file and upload the excel file to Google Sheets (Google Drive maybe) via API (that's possible I think). Then, the function will publish Google Sheets to Web (like as Publish to Web
function in Google Sheets web UI) in order to embed the Google Sheets in my website for Preview.
I could not figure out the API endpoint to do Publish To Web
via Python.
There is the only Stackoverflow link I found out that someone did it via JS code (Google Sheets API: How to "publish to web" for embeddable sheet?), but it requires Authentication at the client side. For my case, I want to implement the function in Backend (server) with an Authorization Token (hard-code or managed by backend)
Really appreciate if anyone know a solution to achieve my goal. Thanks so much.