Slide 1

Slide 1 text

PAGE DAY 2017/11/01 # MOONGIFT / 12 SendGrid + GoogleεϓϨου γʔτʹΑΔ؆୯WebαΠτߏங 1 4FOE(SJE/JHIUʙUI"OOJWFSTBSZʙ THOJHIUUI

Slide 2

Slide 2 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 ࣗݾ঺հ 2 @goofmint fb.me/goofmint த௡઒ ಞ࢘ גࣜձࣾMOONGIFT୅දऔక໾ https://www.moongift.co.jp ΤόϯδΣϦετɾίϛϡχςΟϚωʔδϟʔ ίϛϡχςΟ ओ࠵ THOJHIUUI

Slide 3

Slide 3 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 ࠓ೔͓࿩͢͠Δ͜ͱ DevRelCon Yokohama 2023ͷWebαΠτ Λࢧ͑ͨSendGridͷ͓࿩ 3 THOJHIUUI

Slide 4

Slide 4 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 DevRelCon is Կʁ • DevRelʢDeveloper Relationsʣʹؔ͢Δ άϩʔόϧͳΧϯϑΝϨϯε • DevRel = ࣗࣾ΍ࣗࣾαʔϏεͱɺ֎෦ͷ ։ൃऀͱͷؒʹྑ޷ͳؔ܎ੑΛங͘׆ಈ 4 THOJHIUUI

Slide 5

Slide 5 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 ΧϯϑΝϨϯεެࣜαΠτͷ ίϯηϓτ • Ͱ͖Δָ͚ͩʹӡӦ͍ͨ͠ • ͳΔ΂͘खؒΛ͔͚ͨ͘ͳ͍ • ࣗಈԽ͍ͨ͠ 5 ϓϩάϥϚʔͷࡾେඒಙʮଵଦʯʮ୹ؾʯʮၗຫʯ THOJHIUUI

Slide 6

Slide 6 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 ΞʔΩςΫνϟ 6 γʔτͷσʔλΛ +40/Ͱμ΢ϯϩʔυ ੩తαΠτΛ σϓϩΠ THOJHIUUI

Slide 7

Slide 7 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 ΞʔΩςΫνϟ 7 ϝʔϧͰͷ ͓໰͍߹Θͤ 8FCIPPLͰ ("4ݺͼग़͠ 4MBDLͰ ӡӦʹ௨஌ THOJHIUUI

Slide 8

Slide 8 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 ΞʔΩςΫνϟ 8 ࢀՃऀɾొஃऀ΁ͷ Ұׅϝʔϧ഑৴ ϝʔϧ THOJHIUUI

Slide 9

Slide 9 text

PAGE DAY 2017/11/01 # MOONGIFT / 12 SendGrid × GASͷ࣮૷ 9

Slide 10

Slide 10 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 Inbound Parse 10 THOJHIUUI

Slide 11

Slide 11 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 Google Apps Script 11 function doPost(e) { const { to, from, subject, text, html, headers } = e.parameter; // লུ } THOJHIUUI

Slide 12

Slide 12 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 12 const property = PropertiesService.getScriptProperties(); const body = { "personalizations": [{"to": [{ email }], subject, }], "from": { "email": from, "name" : from_name }, "content": [{"type": "text/plain", "value": body_text}] }; if (body_html) { body.personalizations[0].content.push({ "type": "text/html", "value": body_html }); } const payload = JSON.stringify(body); const res = UrlFetchApp.fetch('https://api.sendgrid.com/v3/mail/send', { method: 'POST', headers: { 'Content-Type': 'application/json', 'Authorization': `Bearer ${property.getProperty('SENDGRID_API_KEY')}`}, payload: payload }); return res.getResponseCode() === 202; THOJHIUUI

Slide 13

Slide 13 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 SendGrid΁ͷ͓ئ͍ 🙇 • εύϜϑΟϧλʔ෇͚ͯ΋ɺΊͬͪΌεύϜདྷΔ • ϙετ͢Δ಺༰ΛUTF-8ʹม׵ͯ͘͠ΕΔͱخ͍͠… • GAS SDK͕͋Δͱྑ͍Μ͡Όͳ͍͔ͳʁ 13 THOJHIUUI

Slide 14

Slide 14 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 ΞʔΩςΫνϟ αΠτσʔλ αΠτσϓϩΠ ͓໰͍߹Θͤ ϝʔϧ ௨஌ Ұ੪ૹ৴ 8FCIPPL ొஃऀɾࢀՃऀ޲͚ ϝʔϧ THOJHIUUI

Slide 15

Slide 15 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 αʔϏεબఆʹ͍ͭͯ 15 THOJHIUUI

Slide 16

Slide 16 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 αʔϏεબఆʹ͍ͭͯ 16 ීஈ͔Β࢖͍ͬͯΔ ແྉ࿮ͰӡӦ͍ͯ͠ΔʢίϛϡχςΟʹͯʣ "1*Ͱ௨஌Λड͚औΕΔʢࣗಈԽͰ͖Δʣ THOJHIUUI

Slide 17

Slide 17 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 αʔϏεબఆʹ͍ͭͯ 17 ࢖͍׳Ε͍ͯΔ ("4͕ศརʢ1045Λड͚औΕΔͳͲʣ σʔλΛ%#෩ʹɺॊೈʹ؅ཧͰ͖Δ THOJHIUUI

Slide 18

Slide 18 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 αʔϏεબఆʹ͍ͭͯ 18 ແྉ࿮͕͋Δ σϓϩΠ͕؆୯ʢ(JU)VC࿈ܞɺ$-*ͳͲʣ άϩʔόϧରԠͨ͠$%/ʢதࠃআ͘ʣ THOJHIUUI

Slide 19

Slide 19 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 αʔϏεબఆʹ͍ͭͯ 19 ීஈ͔Β࢖͍ଓ͚͍ͯΔ৴པײ ϝʔϧड৴ରԠͷαʔϏε͸ݶΒΕΔ ड৴ɾૹ৴ରԠͷϝʔϧαʔόʔΛ҆ఆɾ ϝϯςφϯεϑϦʔͰӡ༻Ͱ͖Δ THOJHIUUI

Slide 20

Slide 20 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 ·ͱΊ • SendGrid 10प೥͓ΊͰͱ͏͍͟͝·͢ʂ 🎊🎊🎊 • DevRelCon YokohamaͷαΠτ͸΄΅ແྉͰ҆ఆͯ͠ӡ༻ • Google Apps Script + SendGrid͸ศརͳͷͰ͓קΊ • Ϋϥ΢υαʔϏεͷબఆ͸ྉۚɾ҆ఆੑɾ֦ுੑɾ৴པੑ 20 THOJHIUUI

Slide 21

Slide 21 text

PAGE # MOONGIFT / 50 DAY 2019/02/14 👋 Thanks! @goofmint fb.me/goofmint ͝ײ૝͓଴ͪ͠·͢ʂ