$30 off During Our Annual Pro Sale. View Details »

小学生でもわかる SlackAPI×GAS

yosi
August 09, 2022

小学生でもわかる SlackAPI×GAS

yosi

August 09, 2022
Tweet

More Decks by yosi

Other Decks in Programming

Transcript

  1. ʮখֶੜͰ΋Θ͔Δʯ SlackAPI × GAS גࣜձࣾRaiseTechɹΑ͠

  2. ࣗݾ঺հ

  3. ࣗݾ঺հ Α͠(দా޾య) 
 ΤϯδχΞ ྺ 1೥1ϲ݄ 29ࡀɹ෕ྺ1೥ɹ ݩখֶߍڭ་ (6೥ؒ) →डୗ։ൃاۀ(php)

    →ΤϯδχΞϦϯάεΫʔϧRaiseTech ɹJava,React,TypeScript,GAS
  4. ຊ೔ͷςʔϚ GAS×SlackAPI͸ ϝϦοτ͕͍ͬͺ͍ʂ 
 


  5. ᶃ࣮૷͕͓खܰ ᶄGAS͸൚༻ੑͷߴ͍ݴޠ ᶅνʔϜʹߩݙ͠΍͍͢ ϝϦοτ

  6. ɾΞϝϦΧͰ։ൃ͞ΕͨϏδωενϟοτπʔϧͰ͢ɻ 
 ɾݩʑ։ൃελοϑ͕ͨͪࣾ಺ͷίϛϡχέʔγϣϯ༻ʹ࡞ͬͨ πʔϧɻ ɾࣗ෼ͰΧελϚΠζͰ͖ΔAPI͕๛෋ 
 ڝ߹ MicrosoftTeams,LINE WORKS,,,etc 


    
 ࠾༻اۀ 
 αΠόʔΤʔδΣϯτ / ύφιχοΫ / ϝϧΧϦ / σΟʔɾΤψɾ Τʔ / Ϡϑʔδϟύϯ / Slack 

  7. SlackAPI×GASͰͰ͖Δ͜ͱ ɾఆ࣌ͷϝοηʔδૹ৴ ɾGoogleformͷճ౴Λϝοηʔδʹ౤ߘ ɾ Slackͷ͋Δಈ࡞ΛτϦΨʔʹ͠ɺ 
 ͦΕ͕ߦͳͬͨࡍͷॲཧΛ͢Δɻ → SlackAPIͷϦϑΝϨϯε͋Δࣄ͸ͳΜͰ΋Ͱ͖Δʂʂ →ࣗಈԽͰ࡞ۀ͕࣌ؒ࡟ݮʂʂ

  8. 1. ࣮૷͕͓खܰ

  9. ࣮૷͢Δࡍʹग़ͯ͘Δোน ։ൃ؀ڥΛ ·ͣ͸੔͑ͯ ೖྗϑΥʔϜ΍ɺ ݟͨ໨ͷ෦෼ Ͳ͏΍͔ͬͯ͜ʔ͔ͳʁ σϓϩΠ·Ͱ͢Δʹ Πϯϑϥͷͱͪ͜ΐͬͱ ۤखͳΜͩΑͳʙ

  10. ɾGoogle͕։ൃ,ఏڙ͍ͯ͠Δݴޠ 
 ɾJavaScriptΛϕʔεͱͨ͠εΫϦϓτݴޠ ɾGoogleͷఏڙ͢ΔαʔϏεͱͷ࿈ܞ ɾ։ൃ؀ڥͷ४උ͸͍Βͳ͍ ɾτϦΨʔઃఆ,σϓϩΠ΋؆୯ 
 →΍ͬͯΈ͍ͨʂͱࢥͬͨΒଈ࣮ݱՄೳ GAS(Google Apps

    Script)
  11. None
  12. None
  13. None
  14. 2. GAS͸൚༻ੑͷߴ͍ݴޠ

  15. ͜Ε͸ֶͿ΂͖ݴޠͩʂͱ ࢥ͏΋ͷ͸ԿͰ͠ΐ͏͔??

  16. None
  17. ࠓֶͿ΂͖ݴޠͱͯ͠ɺ JavaScript͸ͱͯ΋͓͍͍͠😋 GAS͸JSΛϕʔεʹ࡞ΒΕͯΔˣ

  18. 3.νʔϜʹߩݙ͠΍͍͢

  19. νʔϜʹߩݙ͠ʹ͍͘! δϡχΞͷ೰Έ,,,

  20. 
 
 ࣗ෼ͷͰ͖Δࣄʹϑϧίϛοτ νʔϜͷ࿈ܞؒͰɺ ฦ౴࿙Ε͕͋ͬͨΓɺ ͯ͠ͳ͍͔ͳ ࠓͷ؀ڥʹ͸͜ͷ λεΫπʔϧ΋ ͋ͬͯΔͷͰ͸ͳ͍͔ ͜ͷఆظతͳ࡞ۀ͸

    ࣗಈԽͰ͖ͳ͍͔ͳʁʁ
  21. ɾAPIΛୟ͖ʹߦ͘࡞ۀ ɾOAuth,τʔΫϯ ɾJSON ɾWebhook API࿈ܞͷษڧʹͳΔ

  22. GAS×SlackAPI͸ ͙͢ʹ࣮૷Ͱ͖Δ͠ɺ ίʔσΟϯά΋؆୯ JSͷษڧʹ΋ͳΔɺ API࿈ܞͷ࿅शʹ΋ͳΔʂʂ 


  23. GAS×SlackAPI͸ ϝϦοτ͕͍ͬͺ͍ʂ