Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
学生時代にLINE APIに触れ合って今身になったこと
Search
4geru sakisaka
December 18, 2019
0
180
学生時代にLINE APIに触れ合って今身になったこと
【東京】LINE Platform Meetup for Students vol.1! で発表した内容です
https://line.connpass.com/event/157589/
4geru sakisaka
December 18, 2019
Tweet
Share
More Decks by 4geru sakisaka
See All by 4geru sakisaka
趣味コーディングってやっぱ楽しいんだから
4geru
1
88
横断組織として考える共通DBの課題解決 〜 桃園の誓いアーキテクチャ 〜 / Addressing Shared Database Challenges as Cross-Team: “Peach Garden Oath” Architecture
4geru
2
860
Supabase x Ruby on Rails
4geru
0
270
Supabase Edge Functions で最近追加された AI 機能を使ってみた
4geru
0
340
福山ネーター LINE DC ハッカソン 2023 @福山
4geru
0
130
Google Form とちょっと 仲良くなった話。
4geru
0
53
Flutter x Graph
4geru
0
240
Github Discussions がイケてる
4geru
0
800
Flutter Academy final presentatoin
4geru
0
38
Featured
See All Featured
Done Done
chrislema
181
16k
Building Adaptive Systems
keathley
38
2.3k
Building a Modern Day E-commerce SEO Strategy
aleyda
38
7k
The Cost Of JavaScript in 2023
addyosmani
45
7k
I Don’t Have Time: Getting Over the Fear to Launch Your Podcast
jcasabona
29
2k
The World Runs on Bad Software
bkeepers
PRO
65
11k
Imperfection Machines: The Place of Print at Facebook
scottboms
266
13k
The Power of CSS Pseudo Elements
geoffreycrofte
73
5.4k
A designer walks into a library…
pauljervisheath
204
24k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
38
1.9k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
2
290
Transcript
ֶੜ࣌ʹ-*/&"1*ʹ৮ Ε߹ͬͯࠓʹͳͬͨ͜ͱ -*/&1MBUGPSN.FFUVQGPS4UVEFOUTX 536/,
3ߦ·ͱΊ w ֶੜ࣌ʹઓͨ͜͠ͱཱ͕͍ͬͯΔ w -*/&"1*͍ΖΜͳ͜ͱ͕Ͱ͖Δ w ౙٳΈ-*/&"1*৮ͬͯΈ·ͤΜ͔ʁ
ࣗݾհ ֶੜ࣌ HFSV ޭҰ ɾΤϯδχΞ ؔͷେֶग़ ճੜใܥֶ෦ʹೖΔ ճੜ8FCܥͷόΠτΛ͢Δ ճੜ-*/&CPUͱग़ձ͏ ճੜ-*/&ͷϋοΧιϯָ͍͠ʂʂ
ࣗݾհ ֶੜ࣌ w -*/&"1*&YQFSUظੜ w -*/&ͷϋοΧιϯग़·͍ͬͯͨ͘ w શʹ-*/&झຯɻ
ࣗݾհ ࣾձਓ࣌ HFSV ޭҰ ɾΤϯδχΞ ϚωʔϑΥϫʔυೖࣾ ϚωʔϑΥϫʔυೖࣾޙ ݄ˠ݄څ༩νʔϜ ݄ˠ݄ϝσΟΞνʔϜ ࣾཹֶ
݄ˠ݄څ༩νʔϜ ݄ˠࠓ݄ۈଵνʔϜ
w ৽ଔ w )31SPEVDUຊ෦ w ۈଵνʔϜ w ݄ʹϑΝʔετϦϦʔε w ࠷ۙझຯϓϩͰ͖ͯͳ͍
ࣗݾհ ࣾձਓ࣌
ͦΕͧΕͷ εςοϓͰͷඪ
ֶੜ࣌ͷඪ ͍ΖΜͳ͜ͱʹ νϟϨϯδͯ͠ݟΔ
ࣾձਓ࣌ͷඪ ϓϩμΫτʹूதʂ Ұ൪͍͍ͷΛ࡞Δ
ֶੜ࣌ͷ
͍ΖΜͳϋοΧιϯʹग़ͯ ͍ΖΜͳCPUΛ࡞ͬͨ
ΧϯΧϯ • ެ։ : 2017/04 • େֶͷׂ࣌ؒbot • Ϧονϝχϡʔ&ϘλϯΛ׆༻ •
શવใͱ͔͍ͯ͠ͳ͍ 2017/04 Max 358 req/day
ڷΖ͏͘Μ • ެ։ : 2017/10 • GovHack@ੜۨͰ࠷༏ल & MA2018LINEGovHack •
BeaconΛͬͯࢠͰಸྑͷྺ࢙Λ८Δ • LINE x Geolocationʹ͍ͭͯߟ͑Δ • ॳΊ·ͯ͠νʔϜͰ͍͍νʔϜ͕Ͱ͖ͨ
͘ΒͪΌΜ • ެ։ : 2017/08 • LINE Boot AwardͰ࡞ͨ͠bot •
Messaging API, CEK, Beacon, PayΛ٧ΊࠐΜͩ • खͿΒͰ؍ޫͯ͠ɺ͓࢈PayͰ༣ૹͤ͞Δ • ॳΊͯͷNodeͰ2ؒͰؤுͬͨɻ
IUUQTTQFBLFSEFDLDPNHFSVMJOFCPUMJGF աڈʹLTͨ͠ͷͰڵຯ͕͋Ε
͍ͨ͢͝ΓલͰ ؾ͔ͮͳ͍͚Ͳ ͳ͍ͱੜ׆Ͱ͖ͳ͍ΞϓϦ
εϚϗͰͰ͖Δ͜ͱ ಡॻ (PPHMFNBQ Χϝϥ 4/4 ݕࡧ ϝϞ͢Δ
ࠓͳΒ ؤுΕݸਓͰ ࡞ΕΔʂ
͕ࣗ-*/&Λ બͨ͠ཧ༝
• Bot͚ͩͩͱγϯϓϧͰUXߟ͑࢝ΊΔͱԞ͕ਂ͍ • Bot͚ͩ͡Όͳ͘IoT / VUI / viewͰ͖Δ • StampɾϘλϯɾURIεΩʔϚͱεϚϗΛ׆༻Ͱ͖Δ
• ؆୯ʹϦϦʔεͰ͖पΓͷਓʹFB͕Β͑Δ LINEͷΑ͞
ࣾձਓʹͳ͔ͬͯΒ
ڈ͔Β৽نαʔϏεʹࢀՃ • ϦϦʔεॳ • ػೳෆͰചΕͳ͍ͱݴΘΕ͍ͯͨ • ࠷ۙ • ػೳॆ࣮͖ͯͯ͠ɺͪΌΜͱ͑Δ •
ڝ߹ͱൺͯγϯϓϧͰΘ͔Γ͍͢
ڈ͔Β৽نαʔϏεʹࢀՃ
νʔϜͷมԽ ৽͍͠ϝϯόʔ ଞͷνʔϜʹߦ͘ϝϯόʔ
ϦϦʔεॳ ҰͭͷػೳΛ࡞Δ͝ͱʹ্͕͕ΔΑ͏ͳ εϙʔπΛ͍ͯ͠ΔΑ͏ͳָ͍͠νʔϜ ΤʔεΞλοΧʔ͕͍Ε εέδϡʔϧௐͯ͘͠ΕΔ ηολʔ͕͍Δ ث༻ͳ6* Ϛελʔ མͪͯΔϘʔϧ Λर͏Ϧϕϩ
࠷ۙ શһ͕ಉ͡ϕΫτϧΛ͍͍ͯͯ ϓϩμΫτΛΑΓΑ͘͠Α͏ͱʑྗ 1.͕ࢀՃ ΈΜͳಉ͡ϕΫτϧΛ͚Δ ༨༟Λ࣋ͬͨεέδϡʔϧ ͍ΖΜͳλΠϓͷ ੜె͕͍Δ ൝ 1.
͕ δϟοδΛ͢ΔͷͰ ؾ࣋ͪతʹগָ͠ʹ
ࣾձਓೋΛৼΓฦͬͯ • མͪͯΔϘʔϧΛर͍ʹߦ͘บ͕͍ͭͨ • ࡉ·Ͱͩ͜ΘΔ͜ͱͰɺ͓٬͞Μʹ Θ͍ͬͯΔ
BotΛ࡞ͬͯΈͯ(ΤϯδχΞઢ) • ઃܭྗɾ༷ࡦఆɾ࣮ྗ্͕͕ͬͨ • ৽͍͠ػೳͷ࣮Λ͞ΕΔ͜ͱ͕ଟ͍ • ϚΠΫϩαʔϏε/ϋʔυΣΞपΓ/PDFग़ྗ • ៉ྷ/Ԛ͍ίʔυ͕ॻ͚ΔΑ͏ʹͳͬͨ •
͍ΖΜͳݴޠͷੑ͕Ͱ͖ͨ
BotΛ࡞ͬͯΈͯ(ඇΤϯδχΞઢ) • ϞϒϓϩɾϖΞϓϩྗ্͕͕ͬͨ • UI/UXΛΑΓٻΊΒΕΔΑ͏ʹͳͬͨ • MVP͕ܾΊΒΕΔΑ͏ʹͳͬͨ (ඞཁ࠷ݶͲ͜·Ͱ࡞Δ͔)
͠CPU࡞Γ͍ͨ ͱࢥͬͨΒ
ࢿྉ͋Γ·͢ʂ ʲLINE botʳॳΊͯͷ͓Έ͘͡bot ʲLINE botʳϦονϝχϡʔΛͬͨΧϯτbot ʲLINE botʳ࠷دӺݕࡧbot ʲLINE botʳՄѪ͘͢ΔͨΊʹ ϩʔΧϧͰ࢝ΊΔLINE
bot @Ruby ΞΫγϣϯΦϒδΣΫτͰͰ͖Δ͜ͱ
RVJUB !HFSVͰݕࡧʂ ౙٳΈνϟϨϯδ͠·ͤΜ͔ʁ
3ߦ·ͱΊ w ֶੜ࣌ʹઓͨ͜͠ͱཱ͕͍ͬͯΔ w -*/&"1*͍ΖΜͳ͜ͱ͕Ͱ͖Δ w ౙٳΈ-*/&"1*৮ͬͯΈ·ͤΜ͔ʁ