You will need a script to host the scriptdb that contains your public data. In the step by step guide, Delegation to Google Apps Script, you should have created a script, pubstuff and added the mcpher library. Here's the code you need, you can just paste this in unchanged.
I always try to keep the data in a doGet() function to a minimum. This means that I can test the whole thing before publishing it. The function testPublicStuff () will log the contents of the scriptDB so you can check before publishing. If you look at the log, you should see this, since we haven't yet put anything in the scriptdb
This is going to be a public script, available to all, so we are are going to make it publicly accessible and publish it with anonymous access. Here's how
First authorize doGet() by running it. You'll get this message. You only have to do this once.
Go to manage version
and save this version
Now take a note of the url of your published app. My version of this example is https://script.google.com/a/macros/mcpher.com/s/AKfycbz3tRO5VJ-Sr7C_0rcQf2lWqxIPNN__LsNNV_ZfuvO5Ly0RAnWU/exec
Copy the URL to a browser. You should get the same result as you did while testing.
You are going to need the project properties of the script you have just created so you can include it as a library in other scripts that need to access this scriptdb. Take note of your own key from the project properties. Here's mine below.
For help and more information join our forum,follow the blog or follow me on twitter . Now take a look at the next step in step by step guide to delegating to Google Apps Script.
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Delegation to Google Apps Script >