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
93
横断組織として考える共通DBの課題解決 〜 桃園の誓いアーキテクチャ 〜 / Addressing Shared Database Challenges as Cross-Team: “Peach Garden Oath” Architecture
4geru
3
960
Supabase x Ruby on Rails
4geru
0
300
Supabase Edge Functions で最近追加された AI 機能を使ってみた
4geru
0
360
福山ネーター LINE DC ハッカソン 2023 @福山
4geru
0
130
Google Form とちょっと 仲良くなった話。
4geru
0
54
Flutter x Graph
4geru
0
240
Github Discussions がイケてる
4geru
0
850
Flutter Academy final presentatoin
4geru
0
38
Featured
See All Featured
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
3
360
How GitHub (no longer) Works
holman
312
140k
jQuery: Nuts, Bolts and Bling
dougneiner
62
7.6k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
33
2.7k
Code Reviewing Like a Champion
maltzj
521
39k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
59k
YesSQL, Process and Tooling at Scale
rocio
170
14k
BBQ
matthewcrist
85
9.4k
Dealing with People You Can't Stand - Big Design 2015
cassininazir
365
25k
No one is an island. Learnings from fostering a developers community.
thoeni
19
3.1k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
8
1.2k
A Modern Web Designer's Workflow
chriscoyier
693
190k
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*৮ͬͯΈ·ͤΜ͔ʁ