[D3] Google Apps Script勉強会(再)

  • Published on
    16-Apr-2017

  • View
    995

  • Download
    0

Embed Size (px)

Transcript

<ul><li><p>Google Apps Script()</p><p>GAS</p></li><li><p>GAS GoogleScript</p><p> GmailGoogle DriveGoogle CalendarGoogle</p><p>API</p><p> JavaScript</p><p> CloudIDE</p></li><li><p>Google</p></li><li><p> jsonhtml</p><p> Mock API</p></li><li><p> GUI</p><p> HTML</p></li><li><p>How To Start</p></li><li><p>STEP1: Google</p></li><li><p>Step2: Google Spread Sheet</p><p>Google</p></li><li><p>STEP3: </p><p>Spread Sheet </p></li><li><p>STEP4: </p><p> "Hello World!"</p></li><li><p>STEP5: </p></li><li><p>var sheet = SpreadsheetApp.getActive();var cell = sheet.getRange("A1");cell.setValue("test");</p></li><li><p>Gmail</p><p>GmailApp .sendEmail( "junpei.nishina@bizreach.co.jp" , "Test" , "test" , { from: "junpei.nishina@bizreach.co.jp", name: "GAS TEST" } );</p></li><li><p>Google</p><p>var event = {"summary": "Event Title","start": {</p><p>"dateTime": "2016-04-20T13:00+08:00"},"end": {</p><p>"dateTime": "2016-04-20T18:00+08:00"}</p><p>}</p><p>Calendar.Events.insert({"calendarId": "","resource": event</p><p>});</p></li><li><p>var form = FormApp.create("New Form");form.addCheckBoxItem();form.addMultipleChoiceItem();form.addPageBreakItem();form.addDateItem();form.addGridItem();</p></li><li><p>Google Translate</p><p>var japanese = LanguageApp .translate('This is a pen', 'en', 'ja');</p><p>Logger.log(japanese);</p></li><li><p>Google Map</p><p>function doGet(event) { var map = Maps.newStaticMap() .setSize(600, 600) .setCenter(' 2-15-1');</p><p> map.setMarkerStyle(Maps.StaticMap.MarkerSize.MID ,Maps.StaticMap.Color.RED, 'B'); map.addMarker(' 2-15-1');</p><p> var app = UiApp.createApplication().setTitle(''); app.add(app.createImage(map.getMapUrl())); return app; }</p></li><li><p>Google URL Shortener()</p><p>URL Shortener Developer ConsoleAPI</p></li><li><p>Google URL Shortener(URL)</p><p>var url = UrlShortener.Url.insert({ longUrl: 'http://www.example.com'});</p><p>Logger.log('Shortened URL is "%s".', url.id);</p></li><li><p>Google URL Shortener()</p><p>var shortUrl = "https://goo.gl/4Vwqb2";var url = UrlShortener.Url.get(shortUrl, { projection: 'ANALYTICS_CLICKS'});</p><p>Logger.log('The URL received %s clicks this week.' , url.analytics.week.shortUrlClicks);</p></li><li><p>(JavaScript)</p><p>function showCustomDialog() { var html = HtmlService.createHtmlOutputFromFile('my_modal') .setSandboxMode(HtmlService.SandboxMode.IFRAME); SpreadsheetApp.getUi() .showModalDialog(html, ' ');}</p><p>// function onButtonClick() { Logger.log("button clicked!");}</p></li><li><p>(HTML)</p><p>GoogleAppsCSS</p></li><li><p>GAS</p></li><li><p>Youtube SpreadsheetApp</p><p> YouTube API</p><p> HTML ServiceGUI</p></li><li><p>CMS HTML ServiceHTML</p><p> SpreadSheet</p><p> URL ShortenerURL</p><p> URL Shortener</p></li><li><p>Slack Bot aSlack</p><p> ChatBotMap</p><p> ChatBotMapURLSlack</p></li><li><p>Tips: </p></li><li><p> &gt; &gt; </p></li><li><p> (?)</p></li></ul>