You are here

How to Build a Python CLI that Calls the Apps Script Execution API

Python is a general-purpose programming language that has been growing in popularity in recent years, despite being around since the 1990s. The language’s platform-agnostic nature means it can run on almost any operating system, and it can be used for scripting, software or web development, making it extremely useful.

In recent years, Python has become a popular language for teaching computer programming. This is largely down to its simple core concepts and emphasis on code readability, which also make it a great language for this Google Quickstart. Following the steps in this tutorial will help you build a simple Python command-line application that is able to make calls to, and receive a response from, the Google Apps Script Execution API.

This API is the interface between third-party applications and Google’s Apps Scripts, the cloud-based scripting language that combines elements of web development with Google products, with Google APIs and UI tools built in a services.

This guide requires Python 2.6 or greater, as well as the Pip package management tool. Followers must begin by creating a target Apps Script for the API to call, and then simply follow the steps using the code provided. In around 5 minutes, your simple Python CLI should be making calls to the Apps Script Execution API.

Original Article

Python Quickstart

Martin W Brennan Martin W Brennan is a co-founder of ViewPop, the social network that puts the creation of 3D photos and videos in the hands of anyone with a smartphone. For his day job, Martin is a copywriting consultant at We Write Words, learning about the world as he writes about it.
 

Comments