Response format from apps script project query

Format of Info.json

Each project directory contains an info file that describes the scripts for this project. It is also used to decide whether the sources in the project need to be refreshed. To force a refresh just delete the directory or at least the info file, however this should be unnecessary as new sources will be generated if the project has been modified at a later date than that in info.json. The info.json is used in Visualizing Apps Script dependencies, which shows the realtionship between all your libraries.

info.JSON example

{

    "id": "1TphrUjRcx5sGlhgkfjB2R9MOZe3cPF7wK1LV8yVNoFCAwRTeNyXVsDFd",

    "title": "extractScriptSource",

    "createdDate": 1422106579600,

    "modifiedDate": 1422451475259,

    "version": "694659",

    "exportLinks": {

        "application/vnd.google-apps.script+json": "https://script.google.com/feeds/download/export?id=1TphrUjRcx5sGlhgkfjB2R9MOZe3cPF7wK1LV8yVNoFCAwRTeNyXVsDFd&format=json"

    },

    "noticed": 1422451574143,

    "modules": [

        {

            "id": "190cf91a-8ddf-433e-bd4e-5c9add4430a0",

            "name": "Code",

            "type": "server_js"

        },

        {

            "id": "93f81478-c6d4-4276-8fd0-99c9cbded8cf",

            "name": "webAppPattern",

            "type": "server_js"

        },

        {

            "id": "8342ac00-c6e1-4e83-be01-ac895946fac6",

            "name": "oneTimeSet",

            "type": "server_js"

        },

        {

            "id": "042df702-6ed3-4207-9775-a5a0eccca238",

            "name": "webAppTest",

            "type": "server_js"

        },

        {

            "id": "ecd1187f-0a3f-4580-95d9-b35222b17a14",

            "name": "DriveJsonApi",

            "type": "server_js"

        },

        {

            "id": "ede1d7dd-f035-4b1a-b55f-fca3a2e16ab2",

            "name": "settings",

            "type": "server_js"

        }

    ]

}

For more on drive SDK see Using Drive SDK

You want to learn Google Apps Script?

Learning Apps Script, (and transitioning from VBA) are covered comprehensively in my my book, Going Gas - from VBA to Apps script, All formats are available from O'ReillyAmazon and all good bookshops. You can also read a preview on O'Reilly

If you prefer Video style learning I also have two courses available. also published by O'Reilly.
Google Apps Script for Developers and Google Apps Script for Beginners.


Comments