Upgrade to Pro — share decks privately, control downloads, hide ads and more …

明太子とEndorseと私

 明太子とEndorseと私

SORACOM UG 九州 #9

A9f8382f6cdd535370c723eba233a8f7?s=128

Keita Mohri

June 18, 2019
Tweet

Transcript

  1. ໌ଠࢠͱ&OEPSTFͱࢲ SORACOM UG ۝भ#9 2019/06/18 גࣜձࣾFusic ໟར ܒଠ

  2. ࣗݾ঺հ ໟརܒଠʢ΋͏Γ͚͍ͨʣ w 'VTJD$P -UE 414ೝఆࡁΠϯςάϨʔγϣϯύʔτφʔ  w ɹɹɹɹɹɹൃҊऀϓϩμΫτΦʔφʔ w

    ;͘΍ձһ൪߸ w ޷͖ͳ;͘΍߳௣ઍૣళ w ޷͖ͳ403"$0.αʔϏε,SZQUPO
  3. উखʹ;͘΍͞Μͷએ఻

  4. ෱Ԭݝຽͷ෱རްੜ https://www.fukuya.com/lp/kosodate-shien/

  5. ͦͷྲྀΕͰ಺ॕ͍ΛૹΔͱ ѹ౗తײँ͕…ʂ

  6. Ոఉ༻΁ͷΦεεϝ

  7. ͜Ε͚ͩͰΊΜ͍ͨύελ͕ʂ ͓޷ΈͰʹΜʹ͘ɺͷΓɺͦ͠ͳͲೖΕͯ΋(PPE

  8. 403"$0.&OEPSTF

  9. ஍ຯΊͳαʔϏεΛ঺հ͍ͯ͘͠γϦʔζ લճͷLT https://speakerdeck.com/ktam1219/soracom-kryptonfalsearigatamiwogan-zitemiru

  10. ίϨҎ֎͸ ྲྀΕ஄͕౰͚ͨͬͨͩ

  11. ೥Ͱ݅ʜ &OEPSTF͸ൃද

  12. ࠓ೔͸ɺ &OEPSTFͷ͋Γ͕ͨΈΛײͯ͡Έ·͢

  13. ͋ͳͨ͸ɺͱΜͰ΋ͳ͘ૉ੖Β͍͠*P5ͷΞΠσΞΛࢥ͍͖ͭ·ͨ͠ ؆୯ʹೖखͰ͖ΔεϚϗΛσόΠεͱͯ͠࢖͍ɺ8J'JΛ࢖ͬͯԿ΍Βେ ྔͷσʔλΛૹΓ·͢ 1P$΋ॱௐʹऴ͑ɺͦΖͦΖϓϩμΫγϣϯ։ൃͷஈ֊Ͱ͢ ͱΜͰ΋ͳ͘ૉ੖Β͍͠ͷͰɺσόΠεͷॳճൃ஫਺͸ສ୆Ͱ͢ ͕ɺ͍͟։ൃΛਐΊ͍ͯ͘ͱ͋ΔนʹͿ͔ͭΓ·ͨ͠

  14. Ͳ͏΍ͬͯ σόΠεΛೝূ͠Α͏

  15. શσόΠεڞ௨ͷೝূΩʔΛϓϩάϥϜʹຒΊࠐ΋͏ʂ ͦͷΩʔ͕࿙ΕͨΒ
 αʔϏε͕ࢮΜͰ͠·͏ʜ

  16. ೝূΩʔΛൃߦͯ͠ग़ՙ࣌ʹઃఆ͠Α͏ʂ ઃఆ͸໘౗ͩ͠ɺೝূΩʔͷ؅ཧ΋େม w ൃߦͨ͠Ωʔͷ؅ཧ w ΩʔΛൃߦͰ͖Δਓͷ؅ཧ ͱΜͰ΋ͳ͘ૉ੖Β͍͠ͷͰɺ
 σόΠεͷॳճൃ஫਺͸ສ୆Ͱ͢

  17. ॳճىಈ࣌ʹ"1*Λୟ͍ͯೝূΩʔΛऔಘ͠Α͏ʂ ͦͷ"1*Λୟ͘ͱ͖ͷೝূ͸Ͳ͏΍ͬͯʜ ҎԼແݶϧʔϓ

  18. 8J'J͡Όͳͯ͘403"$0.#FBNΛ࢖͓͏ʂ ؆୯ʹೖखͰ͖ΔεϚϗΛσόΠεͱͯ͠࢖͍ɺ 8J'JΛ࢖ͬͯԿ΍ΒେྔͷσʔλΛૹΓ·͢ ΪΨࢮ

  19. ͦ͜Ͱ&OEPSTFʂ

  20. None
  21. τʔΫϯͷதʹ *.4* *.&* .4*4%/ ೚ҙͷύϥϝʔλΛ
 ؚΊΒΕΔ τʔΫϯʹؚΜͩ *.4* *.&* .4*4%/

    ೚ҙύϥϝʔλΛ
 ड͚औΕΔ IUUQTFOEPSTFTPSBDPNJP τʔΫϯ͸+85ܗࣜ
  22. ΍ͬͯΈͨ

  23. άϧʔϓઃఆͰ&OEPSTFΛ༗ޮʹ͢Δ ͜Ε͚ͩͰ४උ׬ྃʂ

  24. τʔΫϯΛऔಘ $ curl https://endorse.soracom.io?favoriteFukuya=kashiiChihaya {"token":"eyJraWQiOiJ2MS1mMmZlYTA2MGI5M2Y1MTBiZmI3MjJmMmNkNGIzNzc0ZS14NTA5LnBlbSI…(ҎԼ݁ߏ௕͍)"} ϦΫΤετύϥϝʔλ ͪͳΈʹ1045ͰϦΫΤετϘσΟͱͯ͠౉ͯ͠΋0,

  25. ͪͳΈʹμϝͳͱ͖ $ curl https://endorse.soracom.io?favoriteFukuya=kashiiChihaya "SORACOM Endorse is not enabled for

    subscriber XXXXXXXXXXXXXXX" $ curl https://endorse.soracom.io?favoriteFukuya=kashiiChihaya "Use SORACOM Air to access SORACOM Endorse server." &OEPSTF͕༗ޮʹͳ͍ͬͯͳ͍ "JS4*.Ҏ֎͔ΒΞΫηεͨ͠
  26. ݕূͯ͠ΈΔ IUUQTKXUJPEFCVHHFSJPʹͯݕূ

  27. ݕূͯ͠ΈΔ *.4* *.&* ϦΫΤετύϥϝʔλʔؚ͕·Ε͍ͯΔ͜ͱΛ֬ೝ

  28. ݕূͯ͠ΈΔ IUUQTTBQOPSUIFBTUBNB[POBXTDPNTPSBDPNQVCMJDLFZT <LJEͷϑΝΠϧ໊> ͔Βެ։ݤΛऔಘ औಘͨ͠ެ։ݤΛೖྗͯ͋͛͠Δͱɺ4JHOBUVSF7FSJpFEͱ͍͏͜ͱͰ
 ਖ਼نͷ΋ͷͩͱ֬ೝͰ͖Δʂ

  29. ·ͱΊ

  30. ·ͱΊ ෱ԬݝʹੜΛड͚ͨऀʹ͸໌ଠࢠ͕त͚ΒΕΔ ໌ଠࢠ͸಺ॕ͍ͱͯ͠޷ద඼ πϒνϡʔϒόλʔͱύελ͚ͩͰͨΒ͜ύελ͕؆୯ʹͰ͖Δʂ

  31. ·ͱΊ &OEPSTFͰσόΠεͷೝূ͕؆୯ʹʂ 403"$0.ͰϝΠϯͷ௨৴ΛߦΘͳ͍৔߹Ͱ΋ɺ
 ೝূͷΦϑϩʔυͷͨΊʹ"JS4*.ΛೖΕΔͱ͍͏બ୒ࢶ͕͋Δ 403"$0.ͰϝΠϯͷ௨৴Λߦ͏৔߹͸ʜ
 େ఍#FBN΍'VOOFMʹ׆༂ͷ৔ΛୣΘΕͯΔؾ͕͢Δ

  32. ࠷ޙʹͪΐͬͱએ఻

  33. %JTDPWFSZʹ(PME4QPOTPSͱͯ͠ڠࢍ͠·͢ https://www.discovery2019.soracom.jp/?ref=06 ίϨॏཁ

  34. ΋ɹɹɹɹɹɹ΋͓ئ͍͠·͢ʂ ͝ਗ਼ௌ͋Γ͕ͱ͏͍͟͝·ͨ͠ʂ