もしもベンダーのAPIを切り替えなくてはならなくなったら #phpblt
by
Yuichiro SAITO
Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
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