Guest User

Untitled

a guest
May 26th, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.81 KB | None | 0 0
  1. function sent(){
  2. url=*** //адрес запроса
  3. var response = UrlFetchApp.fetch(url, {
  4. headers: {
  5. 'Authorization': 'Bearer ' + token
  6. }
  7. });
  8. }else{
  9. response = "Выбирите правильный диапазон"
  10. }
  11. ui.alert(response)
  12. }
  13.  
  14. function doGet(e) {
  15. try{
  16. if(e){
  17. var rez = "Порядок в "+ new Date();
  18. }else{
  19. var rez = "Ошибка в "+ new Date();
  20. }
  21. } catch (c) {
  22. var rez = "произошла ошибка; "+c
  23. }
  24. return HtmlService.createHtmlOutput(rez);
  25. }
  26.  
  27. <!doctype html>
  28. <html>
  29. <head>
  30. <meta name="chromevox" content-script="no">
  31. <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">
  32.  
  33. <script type="text/javascript" src="/static/macros/client/js/4110720394-warden_bin_i18n_warden.js"></script>
  34.  
  35. </head>
  36. <body role="main">
  37. <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">
  38. </iframe>
  39. </td></tr></table><script type="text/javascript">
  40. (function() {
  41. var el = document.getElementById('sandboxFrame');
  42. el.onload = function() {
  43. 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");}
  44. el.src = 'https://n-d3laszmtlpgq7xsnt6ua7gljuor6fxn3fxgqplq-0lu-script.googleusercontent.com/userCodeAppPanel';
  45. }());
  46. </script>
  47. </body>
  48. </html>
Add Comment
Please, Sign In to add comment