Slide 1

Slide 1 text

How to send a query to Google Assistant API with PHP 1)1FSͩͬͯ1)1͔Β ʮ0,άʔάϧʯ͍ͨ͠ʂ 1)1FS,BJHJ ൃදࢿྉ !IOX

Slide 2

Slide 2 text

ࣗݾ঺հ ❖ !IOX ❖ ॴଐɿ,-BCגࣜձࣾ ❖ 8FBSFIJSJOH ❖ 1)1ຊମͷόάΛ໿݅ใࠂ

Slide 3

Slide 3 text

ࣗݾ঺հ 1)1ΧϯϑΝϨϯεؔ੢ 1)1FS,BJHJ

Slide 4

Slide 4 text

ࠓ೔͓࿩͢͠Δ͜ͱ ❖ 1)1͔Β(PPHMF"TTJTUBOUͷH31$"1*Λୟ͍ͯΈͨ ❖ ͦͷࡍͷؾ෇͖ͳͲΛڞ༗

Slide 5

Slide 5 text

ࠓ೔ͷΰʔϧ ❖ 1)1ʴH31$ͷ࣮༻తͳࣄྫΛఏ͍ࣔͨ͠ ❖ 1)1FSͷதͰH31$ΠϚΠνྲྀߦͬͯͳ͍ҹ৅ ❖ 1)1H31$ͷ࣮༻౓ʹ͍ͭͯ఻͍͑ͨ ❖ αʔό͸ઈ๬ײ͋Δ͚ͲɺΫϥΠΞϯτ͸ʁ

Slide 6

Slide 6 text

͔͜͜Βຊฤ

Slide 7

Slide 7 text

ʮ0,άʔάϧʯͯ͠·͔͢ʁ ❖ ʮ0,άʔάϧʯͰԻ੠ೖྗ Ͱ͖Δ ❖ ϥʔϝϯλΠϚʔศར ❖ ిؾͷΦϯΦϑศར

Slide 8

Slide 8 text

ʮ0,άʔάϧʯͷத਎ ❖ (PPHMF"TTJTUBOU ❖ "OESPJE΍(PPHMF)PNFΛԻ੠ૢ࡞Ͱ͖Δ࢓૊Έ ❖ 4JSJ΍"MFYBΈ͍ͨͳΞϨͰ͢

Slide 9

Slide 9 text

ʮ0,άʔάϧʯͷෆศͳͱ͜Ζ ❖ ੠Λग़͢ͷ͢Β໘౗ͳͱ͖ʹ࢖͑ͳ͍ ❖ ׈ઉ͕ѱͯ͘άʔάϧઌੜ͕ฉ͖࿙Β͢ ‎Ի੠Ͱ͸ͳ͘ϓϩάϥϜ͔ΒίϚϯυΛૹΓ͍ͨʂ

Slide 10

Slide 10 text

(PPHMF"TTJTUBOU4%, ❖ H31$Λར༻ͯ͠(PPHMF"TTJTUBOUΛૢ࡞Ͱ͖Δ ❖ υΩϡϝϯτͰ͸1ZUIPOͷઆ໌͕खް͍ ❖ (JU)VC্Ͱ͸1ZUIPOͱ(P͕ଟ͍ ‎1)1Ͱ΋༡΂Δ͸ͣʂ

Slide 11

Slide 11 text

H31$ͱ͸ ❖ ৗ࣌઀ଓܕͷ"1*Λෳ਺ݴޠରԠͰఏڙ͢Δ࢓૊Έ ❖ 1)1΋ରԠ͍ͯ͠Δʢͨͩ͠ΫϥΠΞϯτͷΈʣ ❖ 1SPUPDPM#V⒎FSTΛ࢖ͬͯ"1*ίʔυΛࣗಈੜ੒ ❖ ௨৴ϓϩτίϧ͸)551 ❖ 1)1Ͱ͸H31$֦ு͕୲౰

Slide 12

Slide 12 text

༨ஊ (JU)VC্Ͱ1)1͔Β(PPHMF"TTJTUBOU ৮ͬͯΔͷ͸ࢲ͚ͩͰ͢ ࡢ೔·Ͱ1)1͸݅Ͱͨ͠

Slide 13

Slide 13 text

-5Ԡื࣌ ʮཧ۶্1)1Ͱ΋ಈ͖ͦ͏ʯ

Slide 14

Slide 14 text

ൃදिؒલ ʮ͏͓ʔಈ͔Μʜʯ

Slide 15

Slide 15 text

Ͱ͖·ͨ͠ ❖ ίϚϯυϥΠϯҾ਺Λ(PPHMF"TTJTUBOUͷೖྗʹ͢Δ ❖ ฦࣄΛςΩετग़ྗ

Slide 16

Slide 16 text

Ͱ͖·ͨ͠ ❖ ˢϝΠϯॲཧΛൈਮͨ͠΋ͷ

Slide 17

Slide 17 text

Ͱ͖·ͨ͠ ❖ ˢϝΠϯॲཧΛൈਮͨ͠΋ͷ ❖ ࣗಈੜ੒͞ΕͨΫϥεΛ૊Έ߹ΘͤͨΒಈ͖·ͨ͠

Slide 18

Slide 18 text

ؾ͍ͮͨ͜ͱ ❖ 1)1Ͱ΋H31$ΫϥΠΞϯτͳΒे෼࢖͑Δ ❖ ࠓճ࢖ͬͨ"1*͸#JEJSFDUJPOBMʢ૒ํ޲௨৴ʣͩͬͨ ͕ɺ΍Γ͍ͨ͜ͱ͸Ͱ͖ͨ

Slide 19

Slide 19 text

ؾ͍ͮͨ͜ͱ ❖ 1SPUPDPM#V⒎FSTʹΑΔίʔυࣗಈੜ੒͸ڧྗ ❖ OFXͯ͠ϝιουΛݺ΂͹Ұఆ࢖͑Δ ❖ ͱ͸͍͑υΩϡϝϯτແͩ͠ͱਏ͍

Slide 20

Slide 20 text

ؾ͍ͮͨ͜ͱ ❖ 1)1H31$ɺΈΜͳຊ౰ʹ࢖ͬͯΔΜͩΖ͏͔ʜʁ ❖ ݸਓ΋اۀ΋͋·Γ৘ใެ։ͯ͠ͳ͍ ❖ ެࣜυΩϡϝϯτ΋1)1ͷهड़͸গͳ͍

Slide 21

Slide 21 text

%FNP

Slide 22

Slide 22 text

·ͱΊ ❖ H31$ΫϥΠΞϯτ༻్ͳΒ1)1΋Ұఆ࢖͑Δ ❖ طଘͷH31$αʔόΛ࢖͏ͱ1)1H31$Ͱ༡ͼ΍͍͢ ❖ (PPHMF"TTJTUBOUͳΒ࣮༻ੑ΋͋Δ ❖ 1)1H31$ͷ஥͕ؒগͳ͍ٙ࿭͕͋Δ ‎օ͞Μ΋༡ΜͰΈ͍ͯͩ͘͞ʂ

Slide 23

Slide 23 text

͝੩ௌ ͋Γ͕ͱ͏ ͍͟͝·ͨ͠

Slide 24

Slide 24 text

"QQFOEJY

Slide 25

Slide 25 text

PLHPPHMFQIQͷެ։৔ॴ ❖ IUUQTHJUIVCDPNIOXHPPHMFBTTJTUBOUDMJQIQ ❖ QSPUPDͰࣗಈੜ੒ͨ͠ϑΝΠϧ΋DPNNJUͯ͋͠Δͷ Ͱɺ࢖͏෼ʹ͸४උ͕গͳͯ͘ࡁΉ͸ͣ

Slide 26

Slide 26 text

PLHPPHMFQIQͷ࣮༻ੑʹ͍ͭͯ ❖ ৚݅෼ذͯ͠ʮ0,άʔάϧʯ͍ͨ͠ͱ͖ʹ࢖͑Δ ❖ ྫɿۙ઀ηϯαʔͰਓ͕ۙ͘ʹ͍ͨΒిؾΛ͚ͭΔ ❖ ʮ͓͏ͪϋοΫʯͷύʔπͱͯ͠ศར ❖ 1)1Λ࢖͏ͷ͕࠷ద͔͸ٙ໰