title: how do i call a published google script from another google script? the scripts are in different accounts
body: <pre><code>//script calling the published script, this script is in the account 1
  function callScript(){
      try{//published url
         var response =UrlFetchApp.fetch("https://script.google.com/macros/s/../exec?  calendar='CalendarName'");//calendar name as parameter
  
      }catch(e){
    Logger.log(e);
   }
   Logger.log(response.getContentText());
  }
  
  //account 2
  //the code is published, it will run as the user who call the script(account 1), the   access is for anyone 
  function doGet(e){//published script
  
    var app = UiApp.createApplication();
    var calendar=e.parameter.calendar; //calendar name as parameter
    // Determines how many events are happening now 
    var now = new Date();
    var oneMinuteFromNow = new Date(now.getTime() + (60 * 1000));
    var events = CalendarApp.getCalendarsByName(calendar)  [0].getEvents(now,oneMinuteFromNow);
    var email=Session.getActiveUser().getEmail();
    for(i in events){
       var tituloEvento=events[i].getTitle();
       var descEvento= events[i].getDescription();
       var insertar=leerBD(email,tituloEvento,descEvento);
       if (insertar) {
         var inserto=insertarBD(email,tituloEvento,descEvento); 
       } 
    }  
    return ContentService.createTextOutput(e.parameter.string.calendar);
   }
  </code></pre>
  
  <p>I want to call the script in the account 2 and pass a calendar name as parameter, in the account 2, the script will run as the user who call the script and get some events  </p>