Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function sent(){
- url=*** //адрес запроса
- var response = UrlFetchApp.fetch(url, {
- headers: {
- 'Authorization': 'Bearer ' + token
- }
- });
- }else{
- response = "Выбирите правильный диапазон"
- }
- ui.alert(response)
- }
- function doGet(e) {
- try{
- if(e){
- var rez = "Порядок в "+ new Date();
- }else{
- var rez = "Ошибка в "+ new Date();
- }
- } catch (c) {
- var rez = "произошла ошибка; "+c
- }
- return HtmlService.createHtmlOutput(rez);
- }
- <!doctype html>
- <html>
- <head>
- <meta name="chromevox" content-script="no">
- <link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"><link rel="stylesheet" href="/static/macros/client/css/1161659322-mae_html_css_ltr.css">
- <script type="text/javascript" src="/static/macros/client/js/4110720394-warden_bin_i18n_warden.js"></script>
- </head>
- <body role="main">
- <table id="warning-bar-table" class="full_size" cellspacing="0" cellpadding="0"><tr><td><div id="warning" class="warning-bar"></div></td></tr><tr><td style="height: 100%"><iframe id="sandboxFrame" allow="accelerometer *; ambient-light-sensor *; autoplay *; camera *; encrypted-media *; fullscreen *; geolocation *; gyroscope *; magnetometer *; microphone *; midi *; payment *; picture-in-picture *; speaker *; usb *; vibrate *; vr *" sandbox="allow-forms allow-modals allow-popups allow-popups-to-escape-sandbox allow-same-origin allow-scripts allow-top-navigation">
- </iframe>
- </td></tr></table><script type="text/javascript">
- (function() {
- var el = document.getElementById('sandboxFrame');
- el.onload = function() {
- goog.script.init("x7bx22functionNamesx22:x5bx22onOpenx22,x22onInstallx22,x22AddGroupx22,x22test1x22,x22AddContx22,x22doGetx22,x22updContx22,x22addContx22,x22showSidebarx22,x22FirstExampleFuncx22x5d,x22sandboxModex22:x22IFRAME_SANDBOXx22,x22libidx22:x22MElN2r1cq8wq5AsjRzfOOkBKSiheyHQNGx22,x22callbackTimeoutx22:390000,x22eeix22:x22x22,x22sandboxHostx22:x22https://n-d3laszmtlpgq7xsnt6ua7gljuor6fxn3fxgqplq-0lu-script.googleusercontent.comx22,x22clientSidePropertiesx22:x7bx22google.script.sandbox.modex22:x22IFRAME_SANDBOXx22,x22google.script.host.originx22:x22https://docs.google.comx22x7d,x22actionPrefixx22:x22/macros/s/AKfycbyoX5A8Ab-5Q12kufXr7PWUI4Vd8htVWKdLI842l0-s1DT-DJox22,x22userHtmlx22:x22Порядок в Sat May 26 2018 16:50:02 GMT+0300 (EAT)x22,x22nccx22:x22x7b\x22awhs\x22:truex7dx22x7d", "", undefined, true , false , false , "false", "https://n-d3laszmtlpgq7xsnt6ua7gljuor6fxn3fxgqplq-0lu-script.googleusercontent.com");}
- el.src = 'https://n-d3laszmtlpgq7xsnt6ua7gljuor6fxn3fxgqplq-0lu-script.googleusercontent.com/userCodeAppPanel';
- }());
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment