Google Apps Script WebForm and Fetch Request Exercises

所在平台: Udemy

课程主页: https://www.udemy.com/course/apps-script-projects/

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:Google Apps Script 网络表单与获取请求练习 课程概述:该课程旨在帮助初学者通过 Google Apps Script 创建 PDF 网络表单,从而增强 Google Workspace 的功能,连接数据并将其引入 Google 项目中。Google Apps Script 类似于 JavaScript,能够在云端运行。课程中将涵盖一些精彩的项目,源代码将包括在内。全程可终身访问,由拥有超过20年开发经验的 Google 开发专家授课,随时解答学习中的问题。 课程内容包括: - 创建文档、网页应用及处理数据的基础知识。 - 使用 Google 表格中的数据生成文档,并将文档转化为 PDF 格式进行发送。 - 学习如何创建和更新 Google Docs,应用样式,复制文档等。 - 探索如何将 Google Spreadsheet 数据填充到 Google Doc 模板中,动态生成新的文档。 - 创建 Web 表单并通过 Gmail 发送电子邮件的详细步骤,学习如何利用 Apps Script 提供的 API 方法处理 GET 和 POST 请求。 - 每个模块都包括练习,学生将能通过实际操作掌握使用 Google Apps Script 的技巧。 最终项目将涉及从 Google 表格获取数据,动态生成 PDF,并通过邮件发送等功能。此外,还包括如何创建 Web 应用程序作为数据的 API 端点。 课程还附赠11页的 PDF 指南,帮助学员更好地理解如何利用 Google Apps Script 连接各种 Google 服务,实现功能的整合与自动化。

课程评论(0条)

课程详情

Google Apps Script Projects for Beginners Create PDF WebForm - powerup your Google Workspace do more connect with data and bring it into your Google Projects. Google Apps Script is just like JavaScript - running in the cloud.Sign into your Google Account, create scripts in Google Apps Script codeThis course covers some amazing projects that you can create. Source Code is Included.Full Lifetime access - Taught by a Google Developer Expert with over 20 years of development experience, ready to help you learn more about Google Apps Script and answer any questions you might have.The projects of this course will demonstrate how to apply Google Apps Script code to create Docs, create a web app with both GET and POST endpoints, make use of Sheet data, get sheet data, send emails and much more.Explore Google Apps Script - connect the power of Google Services together! (11 page PDF Guide Included)This section covers how to get started with Google Apps Script and how to create common functionality with just a few lines of code. Create files, select existing files and update them. Use them within your code. How to send out emails and add attachments. Use of blobs to create PDF files, copy and use Docs content in brand new dynamically created Docs. Explore how to get Google Spreadsheet sheet data, and then use the data from the sheet to populate a Google Doc Template, creating new Docs with the populated content dynamically. Take those new files and convert them into PDFs, create PDF files dynamically from Doc files and email them to addresses coming from a Spreadsheet. The upcoming lessons will help you learn more about how to connect the workspace services together to create a fully functional application that can use Sheet data, create files and email files as PDFs.Create Documents - Select and Update Existing Google DocsApply Styling to DocumentsCopy a Google Doc to new LocationsGet Data from your Spreadsheet and populate a Google Doc with Sheet dataCreate a Doc as a templateConvert the Doc to a PDF versionUsing Sheet data and a Doc Template create PDFs and send them to email addressesSend emails and dynamically generated attachmentsCreate Doc as PDF and email to Sheet data email addressFinal Coding Project Exercise:Create a Spreadsheet with headings that you want to use replacing the values in a Google Doc.Create a Google Doc to use as a template for the PDF. Within the Doc for the dynamic values that will be populated from the spreadsheet add the keys using the curly brackets around the heading words from the Sheet heading row contents. {first} Add additional template text, images and setup to prepare to send out.In Drive create a folder that you can use to save temporary files into.Create a new Apps Script standalone application. Give it a nameGet the id of the Spreadsheet. Select the sheet data and get the heading row contents as an array.Get the folder for the temporary files, Get the Doc file within DriveApp as a file object.Loop through all the rows of content from the Spreadsheet data. Create a file making a copy of the template Doc.Get the document object using DocumentApp of the file that was just created.Open the doc and get the body.Loop through the Sheet heading names, do a replaceText() of the heading name in the curly brackets to the row using the index value.Set the name of the newly created doc to be the first and last name of the column data from the sheet.Get the document as a blob.Create the email subject and body contents.Using MailApp send an email with the blob as a PDF attachment.How to Create a Web Form that can send emails using your Gmail account (27 page PDF guide included)Did you know that you can create WebApps with Google Apps Script? These can be used as API endpoints that you can send and retrieve data from using frontend code. Get and Post methods are both default functions that can get request parameters and body contents to use in Google Apps Script Code. Once the WebApp receives the data it can then use it within the Google Workspace services, like sending emails, saving and updating spreadsheet contents. This section will cover one of the most commonly asked for functions for web developers, when creating a form where to send the data from if you don't have a backend server setup. Typically you need backend code to send emails, save into the database and more. Let Google Apps Script handle these as your web server. Apps Script is just like JavaScript but in the cloud and can easily access so many powerful Google Workspace services.HTML Send Email via Apps ScriptHow to create a WebAppUse of GET within the WebAppExecute a block of code on request from AJAXSend POST request to Google Apps ScriptSend Email when the form is submittedExercise: Update the fetch method to POST, include the form field data as an object in the POST request body contents. Create the Google Apps Script endpoint using a webapp to receive the GET and POST request data from the AJAX request from JavaScript.Create a web app with Google Apps Script GET method.Create a new projectUsing the method doGet(e) create a new function that will return the e parameters from the URL request object.Create and return the e parameters as a string value.Set the MimeType to JSONDeploy a new webapp set the configuration to execute as your account, and who has access to AnyoneCopy the web app URL to the JavaScript application as the GET fetch endpoint url.Try sending the fetch request to the Google Apps Script web app and check the response data in the console.Source Code is included so that you can try the code for yourself and create your own version of the applications.

课程标签

0人关注该课程

主题相关的课程