Step by Step guide for Google Apps Script proxyingIn a number of articles I've covered how to use GAS for jsonp, oauth, as a lockbox and various other useful things. There are many threads to pull together in this section, so here's a step by guide to GAS proxying as described in this post. Here's a schematic of the various themes we'll cover Two examples of publishersWe will cover 2 examples in this guide, then show how to access them from a variety of external sources.
Steps for first example - retrieve data from scriptDBMost of the code that is referred to in these serious of posts is available in the mcpher shared library. Please add this library to all any scripts you create.
{ "status": { "code": "good", "reason": "favorites found in your stuff" }, "results": [ { "siloId": "favorites", "help": "for details see ramblings.mcpher.com", "timeStamp": 1352116547560, "myStuff": [ { "name": "excel liberation", "url": "ramlings.mcpher.com" }, { "name": "liberation blog", "url": "excelramblings.blogspot.com" } ], "userStamp": "bruce@mcpher.com" } ]}Steps for second example - enhancing a mashupMost of the code that is referred to in these serious of posts is available in the mcpher shared library. Please add this library to all any scripts you create. In this example, we are going to take the urbarama mashup, which already uses google apps script to combine 2 APIS, and create another API which refines the result of that and returns the refined results.
Now we have an enhanced urbarama mashup. Here's my implementation of this example with a couple of parameters appended. Using the public scriptdb to manage your URLsNow that we have a couple of publishers, the next step is to use the scriptDB to store an accessible version of your growing library of published apps. For help and more information join our forum,follow the blog or follow me on twitter . Now take a look at some selected detail in some of these topics.
|


