Slide 1

Slide 1 text

΋͠΋ϕϯμʔͷAPIΛ੾Γସ͑ͳͯ͘͸ͳΒ ͳ͘ͳͬͨΒ • Yuichiro Saito (@koemu) • 2017/08/08 @ ϝϧΧϦ ౦ژΦϑΟε © Yuichiro Saito (koemu), 2017 1

Slide 2

Slide 2 text

ࠓ೔ͷ͓࿩ • ֎෦ͷϕϯμʔΛ࢖͏APIΛ੾Γସ͑͟ΔΛಘͳ͘ͳͬͨΒͲ͏ ͠Α͏͔ɻ • ઃܭͱҠߦͷ࣮ફྫΛऔΓ্͛·͢ɻ © Yuichiro Saito (koemu), 2017 2

Slide 3

Slide 3 text

֎෦ϕϯμʔͷAPI࢖ͬͯ·͔͢ʁ • Α͋͘Δ΋ͷ: ܾࡁ • ΄͔ʹօ͞ΜԿ͔࢖ͬͯ·͔͢ʁ • ͪΐͬͱߟ͑ͯΈ·͠ΐ͏͔Ͷ © Yuichiro Saito (koemu), 2017 3

Slide 4

Slide 4 text

֎෦APIΛ੾Γସ͑ແͯ͘͸ͳΒͳ͍͕࣌དྷΔ • ձࣾɾαʔϏε͸ӬԕͰ͸ͳ͍ • ٤ۓͷҰൠతͳ࿩: WebPayͷऴྃ1 • ΑΓΑ͍αʔϏε͕ग़͖ͯͯ੾Γସ͑ͨ͘ͳΔ͜ͱ΋͋Δ 1 https://linecorp.com/ja/pr/news/ja/2016/1560 © Yuichiro Saito (koemu), 2017 4

Slide 5

Slide 5 text

͕͔ͩ͠͠ • Έͳ͞ΜͷαʔϏεͷதͰɺϕϯμʔΛ੾Γସ͑ΒΕΔ༻ҙ͸ ͋Γ·͔͢ʁ • ๻͸ͳ͔ͬͨʂͷͰɺ͕Μ͹ͬͯϦϑΝΫλϦϯά͠·ͨ͠ɻ © Yuichiro Saito (koemu), 2017 5

Slide 6

Slide 6 text

Ͱ͸੾Γସ͑΍͍͢ͱ͍͏ঢ়گͱ͸ʁ • ந৅Խ͞ΕͨυϝΠϯΫϥεͰΞΫηεͰ͖Δ • API͕มΘͬͯ΋ϏδωεϩδοΫ͸جຊతʹมߋ͕ඞཁͳ ͍ɻ • DBͱͷCRUDૢ࡞͸Ҿ͖ଓ͖࢖͍·ΘͤΔɻ • ςετίʔυΛ௨ͯ͡ɺυϝΠϯΫϥε͕ެ։͍ͯ͠ΔΠϯ λϑΣΠε͸มΘΒͣಈ࡞͍ͯ͠Δ͜ͱ͕ࣔͤΔɻ © Yuichiro Saito (koemu), 2017 6

Slide 7

Slide 7 text

ͳΔ΄Ͳཧ૝త © Yuichiro Saito (koemu), 2017 7

Slide 8

Slide 8 text

࣮ࡍͲ͏΍͔ͬͨ • ๻͸͜͏ߟ͑ͯ΍Γ·ͨ͠ɺͱ͍͏͓࿩ɻ • ΋ͬͱ͍͍΍Γํ͕͋Γ·ͨ͠ΒɺblogͳͲͰ͝ҙݟ௖͚·͠ ͨΒ޾͍Ͱ͢ɻ • ·͋υϝΠϯϞσϧͬͯݴ͑͹ͦ͏ͳͷ͔΋͠Εͳ͍ɻ © Yuichiro Saito (koemu), 2017 8

Slide 9

Slide 9 text

·ͣAPIΛ௨ͯ͡ߦ͏ۀ຿Λ੔ཧ͢Δ • ͋ΔAPIͷྫ: ݁ߏγϯϓϧͩͬͨͷͰऔֻ͔ͬΓʹྑ͔ͬͨ • ֬ೝ͢Δ • ໰͍߹ΘͤΔ • ཤྺΛࢀর͢Δ © Yuichiro Saito (koemu), 2017 9

Slide 10

Slide 10 text

σʔλΞΫηεϨΠϠʔΛ੾Γग़͢ • ΫϥΠΞϯτΫϥε(࣮ࡍʹAPIΛୟ͘Ϋϥε)Λ੾Γग़͢ɻ • ϞοΫԽ͠΍͍͢Α͏ʹجఈʹΠϯλϑΣΠε͔ந৅ΫϥεΛ࡞ͬ ͓ͯ͘ɻ • গͳ͘ͱ΋ϏδωεϩδοΫ͸ΫϥΠΞϯτΫϥε͸௚઀৮Βͳ ͍ɻ • ΠϯλϑΣΠεʹɺۀ຿Λࣔ͢ϝιουΛੜ΍ͯ͠ɺ࣮ମΫϥεͰ࣮ ࡍʹAPIΛݺͿΑ͏ʹ࣮૷͢Δɻ © Yuichiro Saito (koemu), 2017 10

Slide 11

Slide 11 text

υϝΠϯΫϥεΛ࡞Δ • ͜ΕΒΛߦ͏ϝιουΛੜ΍͢ • ֬ೝ͢Δ • ໰͍߹ΘͤΔ • ཤྺΛࢀর͢Δ • υϝΠϯΫϥε͕σʔλͷ؅ཧͷ੹຿Λ࣋ͭɻ • υϝΠϯΫϥε͔ΒɺΫϥΠΞϯτΫϥεΛݺͼग़͢Α͏ʹ͢Δɻ • υϝΠϯΫϥε͕ɺDBͷCRUDΛ؅ཧ͢ΔΑ͏ʹ͢Δɻ • ϏδωεϩδοΫଆ͸ɺυϝΠϯΫϥεΛૢ࡞͢Ε͹ۀ຿͕׬਱͢ΔΑ͏ʹ࡞͓ͬͯ͘ɻ © Yuichiro Saito (koemu), 2017 11

Slide 12

Slide 12 text

ͳΜͰ͜Μͳ͜ͱΛͨ͠ͷ͔ • ϕϯμʔ੾Γସ͑͸ࠓޙ΋૝ఆ͞ΕΔɻ • ϕϯμʔͷௐࢠ͕΍ͬͺΓྑ͘ͳ͔ͬͨΒϕϯμʔΛ໭͢͜ͱ ͩͬͯ͋ΓಘΔɻ • υϝΠϯΫϥεʹσʔλΛૢ࡞͢Δ෦෼Λ·ͱΊΔͱɺޙͰಡ Ήਓ͕ಡΈ΍͍͢(͸ͣ)ɻ © Yuichiro Saito (koemu), 2017 12

Slide 13

Slide 13 text

·ͱΊ • গͳ͘ͱ΋ϏδωεϩδοΫ͔ΒϕϯμʔͷAPI͸௚઀ୟ͔ͳ ͍ɻ • υϝΠϯΫϥεʹந৅Խ͢Ε͹ɺϕϯμʔ੾Γସ͑ʹ΋ରॲ͠ ΍͘͢ͳΔ͸ͣɻ • υϝΠϯΫϥεʹσʔλૢ࡞Λ·ͱΊΕ͹ɺଞͷਓ΋ίʔυ͕ ಡΈ΍͘͢ͳΔ͸ͣɻ © Yuichiro Saito (koemu), 2017 13

Slide 14

Slide 14 text

͓͠Βͤ • 2017/10/09 (݄ɾॕ) • খதֶੜ޲͚ ϓϩάϥϛϯάڭࣨ TENTOͷൃදձ • ߨධͯͩ͘͠͞ΔํΛืू͓ͯ͠Γ·͢ʂ © Yuichiro Saito (koemu), 2017 14