Не буду долго юлить, детали можно посмотреть тут https://github.com/contributor-pw/provodox-lite
Затестить можно так:
const BASE = 'https://d5dinh6uhntgb8lmpto8.xxg4zr82.apigw.yandexcloud.net';
const TOKEN = 'ВАШ_ТОКЕН_БОТА';
/** Было: прямой вызов MAX -- падает на TLS. */
function before() {
const res = UrlFetchApp.fetch('https://platform-api2.max.ru/me', {
headers: { Authorization: TOKEN },
muteHttpExceptions: true,
});
Logger.log(res.getContentText()); // сюда не доходит: Exception ... SSL Error
}
/** Стало: тот же вызов через прокси -- работает. */
function after() {
const res = UrlFetchApp.fetch(`${BASE}/me`, {
headers: { Authorization: TOKEN },
muteHttpExceptions: true,
});
Logger.log(res.getResponseCode()); // 200
Logger.log(res.getContentText()); // {"user_id":…,"is_bot":true,…}
}
По любым вопросам развертывания, авторизации, подключения собственного домена (например, я использую const BASE = 'https://provodox.contributor.pw') пишите в комментарии.




