Peter MacDonald
Peter MacDonald

Reputation: 1

Is google apps script HTML service still supported?

I've been trying to make some basic web apps using google apps script, but I can't get the doPost to function. When I looked for examples, everything was 2 years old, and all the example scripts no longer ran properly. Is google apps script dead, or just unpopular?

Upvotes: 0

Views: 201

Answers (2)

azawaza
azawaza

Reputation: 3094

Google Apps Script and its HTMLService are very much alive and well. It is well maintained and constantly enhanced by Google, with new APIs/Services added. Not sure what examples you were looking at - you did not specify that in your question, - but all examples of GAS code on Google Apps Script Developers site linked above work fine.

If you have specific questions about doPost() method (or any other GAS services/classes/methods/etc) - please do ask, following recommendations in How yo ask a good question.

Upvotes: 1

Bryan P
Bryan P

Reputation: 5051

you'll want to include the actual code you're working with in your question wrapped in code tags, but the minimum for HtmlService is

function doGet() { 
  return HtmlService.createHtmlOutput("hello world"); 
}

Publish > Deploy as web app > Save a version > Deploy

You get 2 URLs from that. A production one in text box and a development one in the latest code link.

RIP Google Apps Script?

Upvotes: 0

Related Questions