title: Call a custom GAS function from external URL
body: <p>I want to call a custom function I wrote within my Google Apps Script. When I execute a getJSON I suppose it'll automatically run my doGet(e). </p>
  
  <p>My Javascript:</p>
  
  <pre><code>$.getJSON(https://script.google.com/macros/s/[ID]/exec, function(data){ 
     //code here
  });
  </code></pre>
  
  <p>Is there a possible way to call one of my custom functions for example</p>
  
  <p>My Google Apps Script:</p>
  
  <pre><code>function getNumberOfFans(e){ 
     //code here
  }
  </code></pre>
  
  <p>Do I have to add some kind of extra function parameter to my URL?</p>