This is a report for retrieving the logs in Web Apps for Google Apps Script, when it requests to the Web Apps.
const doGet = (e) => {At April 8, 2019, the specification of Google Apps Script Project was changed. You can see this at Google Cloud Platform Projects. The official document says as follows.
Warning: Starting on or after April 8, 2019, the Google Cloud Platform Console won't be able to access the default GCP projects created for new Apps Script projects. Older, existing scripts may have default GCP projects that are still accessible, however. If you have a new script and require access to its GCP project from the Google Cloud Platform Console, you must use a standard GCP project.
And then,
| import os | |
| import sys | |
| import requests | |
| import json | |
| from datetime import tzinfo, timedelta, datetime | |
| from dateutil.parser import parse | |
| POST_URL = 'https://slack.com/api/chat.postMessage' |
| import requests | |
| import base64 | |
| from tqdm import tqdm | |
| master_json_url = 'https://178skyfiregce-a.akamaihd.net/exp=1474107106~acl=%2F142089577%2F%2A~hmac=0d9becc441fc5385462d53bf59cf019c0184690862f49b414e9a2f1c5bafbe0d/142089577/video/426274424,426274425,426274423,426274422/master.json?base64_init=1' | |
| base_url = master_json_url[:master_json_url.rfind('/', 0, -26) + 1] | |
| resp = requests.get(master_json_url) | |
| content = resp.json() |
| /** @description | |
| * javaScript/Google Apps script functions that are equivalent to common VBA functions | |
| * in general these provide the same functionality and have the same calling stack | |
| * See http://ramblings.mcpher.com/Home/excelquirks/codeuse for more details | |
| * @author <a href="mailto:bruce@mcpher.com">Bruce McPherson</a><a href="http://ramblings.mcpher.com"> ramblings.mcpher.com</a> | |
| */ | |
| /** | |
| * Removes leading and trailing whitespace | |
| * @param {string|number} v the item to be trimmed |