SlideShare a Scribd company logo
1 of 14
Script API
Agenda
• What, why and who ?
• Overview of Apps Script services.
•Apps Script is a JavaScript engine in the cloud
•JavaScript Runtime
•Write code in browser, execute code in browser
•Includes
•JavaScript syntax and classes
•Built-in access to various Google APIs
•Ability to integrate 3rd party services
•Executed in a variety of different way
•Spreadsheet, site, standalone, Async
What Why and Who ?
What Why and Who ?
Mail
Contacts
Documents
Spreadsheets
Sites
Calendar
What Why and Who ?
Our Goal
‘’ anyone can script ! ‘’
Apps Script Services
Documents Sites
Spreadsheet Gmail
DocsList
Mail
Contacts
Calendar
Xml
UrlFetch
SOAP
JDBC
SERVICES
Apps Script Services
Documents Sites
Spreadsheet Gmail
DocsList
• Read and write to various Google Docs properties
• Manage Share Settings
• Automate tasks
Apps Script Services - Example
function sendMail(){
var sheet = SpreadsheetApp.getActiveSheet();
var cell = sheet.getRange("A1");
var value = cell.getValue();
MailApp.sendEmail("abedmaatalla@gmail.com", “Spreadsheet test",value);
}
Apps Script Services
Mail
Contacts
Calendar
• Services Names
• MailApp
• ContactsApp
• CalendarApp
Apps Script Services - Example
function trainingEvent() {
var calendar = CalendarApp.getDefaultCalendar();
var startDate = new Date();
var endDate = new Date(startDate);
endDate.setHours(startDate.getHours()+2);
var event = calendar.createEvent("trainings", startDate, endDate,{description: "training
event"}) ;
}
Apps Script Services
Xml
UrlFetch
SOAP
JDBC
• Integrate other Services
• Parse and create XML
• Fetch 3rd party data using REST
• Connect MySQL, Oracle, MSSQL databases
// function to access NetFlix Api
Var Odata_GENRE_URL = ‘’ http://odata.netflix.com/catalog/genres’’ ;
Function searchNetflixTitles_(genre,startPosition,NumberOfResults){
Var requesURL = Odate_GENER_URL+ ’’ (‘ ‘’ + genre+ ’’ ‘ ) /Titles? ’’
+’’$select=Name,ShortSynopsis&$format=json&skip=‘’
+startPosition+’’&$top=‘’+numberOfResults;
Var content = UrlFetchApp(requestURL);
Var result = Utilities.jsonParse(content.getContentText());
Return result;
Getting Started
• Visit Apps Script documentation
• http://goo.gl/UGZlt
• Participate in online community
• Community is very activve
• Googlers are on the forum helpin users
• A place to exchange ides and not just solve problems
• Check out scripts in Gallery
• Follow Apps Script Blog
• http://goo.gl/jHcBF
THANK YOU

More Related Content

What's hot

ASAS 2013 - Architecture for dynamic mobile forms at MoreApps
ASAS 2013 - Architecture for dynamic mobile forms at MoreApps ASAS 2013 - Architecture for dynamic mobile forms at MoreApps
ASAS 2013 - Architecture for dynamic mobile forms at MoreApps
Avisi B.V.
 

What's hot (20)

Develop, Test, and Engage with AWS Mobile Services
Develop, Test, and Engage with AWS Mobile ServicesDevelop, Test, and Engage with AWS Mobile Services
Develop, Test, and Engage with AWS Mobile Services
 
Building microservices with azure functions
Building microservices with azure functionsBuilding microservices with azure functions
Building microservices with azure functions
 
Colorado Cloud Foundry Meeting
Colorado Cloud Foundry Meeting Colorado Cloud Foundry Meeting
Colorado Cloud Foundry Meeting
 
Using AWS Lambda for Infrastructure Automation and Beyond
Using AWS Lambda for Infrastructure Automation and BeyondUsing AWS Lambda for Infrastructure Automation and Beyond
Using AWS Lambda for Infrastructure Automation and Beyond
 
Trusting an API Spec
Trusting an API SpecTrusting an API Spec
Trusting an API Spec
 
Choosing the right messaging service for your serverless app [with lumigo]
Choosing the right messaging service for your serverless app [with lumigo]Choosing the right messaging service for your serverless app [with lumigo]
Choosing the right messaging service for your serverless app [with lumigo]
 
ActiveCampaign API Developer Talks - Motivating Sales with Code
ActiveCampaign API Developer Talks - Motivating Sales with CodeActiveCampaign API Developer Talks - Motivating Sales with Code
ActiveCampaign API Developer Talks - Motivating Sales with Code
 
Going serverless
Going serverlessGoing serverless
Going serverless
 
Go Serverless - Golang NE February 2018
Go Serverless - Golang NE February 2018Go Serverless - Golang NE February 2018
Go Serverless - Golang NE February 2018
 
Serverless Architecture
Serverless ArchitectureServerless Architecture
Serverless Architecture
 
Application Insights for Integration Developers
Application Insights for Integration DevelopersApplication Insights for Integration Developers
Application Insights for Integration Developers
 
ACDKOCHI19 - Rapid development, CI/CD for Chatbots on AWS
ACDKOCHI19 - Rapid development, CI/CD for Chatbots on AWSACDKOCHI19 - Rapid development, CI/CD for Chatbots on AWS
ACDKOCHI19 - Rapid development, CI/CD for Chatbots on AWS
 
Introducing amplify and full stack demo app built with vue.js, graph ql, auth...
Introducing amplify and full stack demo app built with vue.js, graph ql, auth...Introducing amplify and full stack demo app built with vue.js, graph ql, auth...
Introducing amplify and full stack demo app built with vue.js, graph ql, auth...
 
Office 365 Jivko Petiov, JS Talks 2015
Office 365 Jivko Petiov, JS Talks 2015Office 365 Jivko Petiov, JS Talks 2015
Office 365 Jivko Petiov, JS Talks 2015
 
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
SharePoint Saturday Ottawa 2015 - Office 365 and PowerShell - A match made in...
 
Microservices in action: How to actually build them
Microservices in action: How to actually build themMicroservices in action: How to actually build them
Microservices in action: How to actually build them
 
Build with Serverless Applications with azure functions By usama wahab Khan
Build with Serverless Applications with azure functions By usama wahab KhanBuild with Serverless Applications with azure functions By usama wahab Khan
Build with Serverless Applications with azure functions By usama wahab Khan
 
Serverless computing con Azure Functions
Serverless computing con Azure FunctionsServerless computing con Azure Functions
Serverless computing con Azure Functions
 
Training Offerings - CodeOps Technologies
Training Offerings - CodeOps TechnologiesTraining Offerings - CodeOps Technologies
Training Offerings - CodeOps Technologies
 
ASAS 2013 - Architecture for dynamic mobile forms at MoreApps
ASAS 2013 - Architecture for dynamic mobile forms at MoreApps ASAS 2013 - Architecture for dynamic mobile forms at MoreApps
ASAS 2013 - Architecture for dynamic mobile forms at MoreApps
 

Similar to Script api

Similar to Script api (20)

A talk on AWS AppSync
A talk on AWS AppSyncA talk on AWS AppSync
A talk on AWS AppSync
 
Developing Azure Functions for Flow and Nintex SPS SD 2018
Developing Azure Functions for Flow and Nintex SPS SD 2018Developing Azure Functions for Flow and Nintex SPS SD 2018
Developing Azure Functions for Flow and Nintex SPS SD 2018
 
Developing Azure Functions as custom connectors for Flow and Nintex
Developing Azure Functions as custom connectors for Flow and NintexDeveloping Azure Functions as custom connectors for Flow and Nintex
Developing Azure Functions as custom connectors for Flow and Nintex
 
AWS Amplify
AWS AmplifyAWS Amplify
AWS Amplify
 
How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018How to build and deploy serverless apps - AWS Summit Cape Town 2018
How to build and deploy serverless apps - AWS Summit Cape Town 2018
 
Nick Raienko ''Service-oriented GraphQL''
Nick Raienko ''Service-oriented GraphQL''Nick Raienko ''Service-oriented GraphQL''
Nick Raienko ''Service-oriented GraphQL''
 
POST/CON 2019 Workshop: Design, Develop, and Mock APIs with Postman
POST/CON 2019 Workshop: Design, Develop, and Mock APIs with PostmanPOST/CON 2019 Workshop: Design, Develop, and Mock APIs with Postman
POST/CON 2019 Workshop: Design, Develop, and Mock APIs with Postman
 
Getting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless ComputingGetting Started with AWS Lambda and Serverless Computing
Getting Started with AWS Lambda and Serverless Computing
 
Graphql usage
Graphql usageGraphql usage
Graphql usage
 
Developing SharePoint Framework Solutions for the Enterprise - SEF 2019
Developing SharePoint Framework Solutions for the Enterprise - SEF 2019Developing SharePoint Framework Solutions for the Enterprise - SEF 2019
Developing SharePoint Framework Solutions for the Enterprise - SEF 2019
 
Azure functions
Azure functionsAzure functions
Azure functions
 
AWS Lambda in C#
AWS Lambda in C#AWS Lambda in C#
AWS Lambda in C#
 
Hands On - GraphQL
Hands On - GraphQLHands On - GraphQL
Hands On - GraphQL
 
How to create a Function App on Cosmos DB
How to create a Function App on Cosmos DBHow to create a Function App on Cosmos DB
How to create a Function App on Cosmos DB
 
Building real time serverless back ends with aws appsync
Building real time serverless back ends with aws appsyncBuilding real time serverless back ends with aws appsync
Building real time serverless back ends with aws appsync
 
AWS and Serverless with Alexa
AWS and Serverless with AlexaAWS and Serverless with Alexa
AWS and Serverless with Alexa
 
API testing - Japura.pptx
API testing - Japura.pptxAPI testing - Japura.pptx
API testing - Japura.pptx
 
NEW LAUNCH! Developing Serverless C# Applications
NEW LAUNCH! Developing Serverless C# ApplicationsNEW LAUNCH! Developing Serverless C# Applications
NEW LAUNCH! Developing Serverless C# Applications
 
Introduction to Google APIs
Introduction to Google APIsIntroduction to Google APIs
Introduction to Google APIs
 
Data Driven Application with GraphQL and AWS App Sync
Data Driven Application with GraphQL and AWS App SyncData Driven Application with GraphQL and AWS App Sync
Data Driven Application with GraphQL and AWS App Sync
 

Script api

  • 2. Agenda • What, why and who ? • Overview of Apps Script services.
  • 3. •Apps Script is a JavaScript engine in the cloud •JavaScript Runtime •Write code in browser, execute code in browser •Includes •JavaScript syntax and classes •Built-in access to various Google APIs •Ability to integrate 3rd party services •Executed in a variety of different way •Spreadsheet, site, standalone, Async What Why and Who ?
  • 4. What Why and Who ? Mail Contacts Documents Spreadsheets Sites Calendar
  • 5. What Why and Who ? Our Goal ‘’ anyone can script ! ‘’
  • 6. Apps Script Services Documents Sites Spreadsheet Gmail DocsList Mail Contacts Calendar Xml UrlFetch SOAP JDBC SERVICES
  • 7. Apps Script Services Documents Sites Spreadsheet Gmail DocsList • Read and write to various Google Docs properties • Manage Share Settings • Automate tasks
  • 8. Apps Script Services - Example function sendMail(){ var sheet = SpreadsheetApp.getActiveSheet(); var cell = sheet.getRange("A1"); var value = cell.getValue(); MailApp.sendEmail("abedmaatalla@gmail.com", “Spreadsheet test",value); }
  • 9. Apps Script Services Mail Contacts Calendar • Services Names • MailApp • ContactsApp • CalendarApp
  • 10. Apps Script Services - Example function trainingEvent() { var calendar = CalendarApp.getDefaultCalendar(); var startDate = new Date(); var endDate = new Date(startDate); endDate.setHours(startDate.getHours()+2); var event = calendar.createEvent("trainings", startDate, endDate,{description: "training event"}) ; }
  • 11. Apps Script Services Xml UrlFetch SOAP JDBC • Integrate other Services • Parse and create XML • Fetch 3rd party data using REST • Connect MySQL, Oracle, MSSQL databases
  • 12. // function to access NetFlix Api Var Odata_GENRE_URL = ‘’ http://odata.netflix.com/catalog/genres’’ ; Function searchNetflixTitles_(genre,startPosition,NumberOfResults){ Var requesURL = Odate_GENER_URL+ ’’ (‘ ‘’ + genre+ ’’ ‘ ) /Titles? ’’ +’’$select=Name,ShortSynopsis&$format=json&skip=‘’ +startPosition+’’&$top=‘’+numberOfResults; Var content = UrlFetchApp(requestURL); Var result = Utilities.jsonParse(content.getContentText()); Return result;
  • 13. Getting Started • Visit Apps Script documentation • http://goo.gl/UGZlt • Participate in online community • Community is very activve • Googlers are on the forum helpin users • A place to exchange ides and not just solve problems • Check out scripts in Gallery • Follow Apps Script Blog • http://goo.gl/jHcBF