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

WordPressで 多言語オープンデータを発信する

WordPressで 多言語オープンデータを発信する

WordCamp Kansai 2016 ハンズオン資料

75486cbfd37125f121cf4a6c5614601c?s=128

Hidetaka Okamoto
PRO

July 09, 2016
Tweet

Transcript

  1. Wo rd P re s s Ͱ ଟ ݴ ޠ

    Φ ʔϓ ϯ σ ʔ λ Λ ൃ ৴ ͢ Δ Wo rd C a m p K a n s a i 2 0 1 6 H a n d s o n 1
  2. ϋ ϯζ Φ ϯ Ξ δΣ ϯ μ • WordPressͷηοτΞοϓ

    • ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ
  3. ϋ ϯζ Φ ϯ Ξ δΣ ϯ μ • WordPressͷηοτΞοϓ

    • ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ
  4. s p e c i a l t h a

    n k s F i r s t S e r v e r h t t p : / / h a 1 . w c k 2 0 1 6 . o r g / w o r d p r e s s / w p - a d m i n / ~ h t t p : / / h a 1 2 . w c k 2 0 1 6 . o r g / w o r d p r e s s / w p - a d m i n /
  5. None
  6. U s e r : w c k 2 0

    1 6 p a s s : w p a d m i n h a 1 ɹ ɹ ɹ ~ w p a d m i n h a 1 2
  7. ϋ ϯζ Φ ϯ Ξ δΣ ϯ μ • WordPressͷηοτΞοϓ

    • ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ
  8. “ B o g o ” Λ ར ༻ ͠

    · ͢ h t t p s : / / j a . w o rd p re s s . o rg / p l u g i n s / b o g o /
  9. B O G O Λ ࢖ ͏ ཧ ༝ •

    γϯϓϧ • ࡞ऀ͕೔ຊਓ • WP APIͰهࣄ͕औΕΔ
  10. Π ϯε τ ʔϧ & ༗ ޮ Խ h t

    t p s : / / j a . w o rd p re s s . o rg / p l u g i n s / b o g o /
  11. None
  12. ্ ෦ ϝ χϡ ʔ ͔ Β ݴ ޠ ੾

    Γ ସ ͑
  13. ϋ ϯζ Φ ϯ Ξ δΣ ϯ μ • WordPressͷηοτΞοϓ

    • ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ
  14. ೔ ຊ ޠ Ͱ ه ࣄ Λ ࡞ ੒

  15. ্ ෦ ϝ χϡ ʔͰ ݴ ޠ ੾ Γ ସ

    ͑
  16. “ A d d { L a n g }

    t r a n s l a t i o n ” Λ Ϋ Ϧ ο Ϋ
  17. ه ࣄ Λ ຋ ༁ ͯ͠ ެ ։

  18. ͜ ΕͰ ׬ ྃ ʂ

  19. ಉ ͡ ཁ ྖ Ͱ ෳ ਺ ݴ ޠ ʹ

    ຋ ༁ Մ ೳ
  20. ݴ ޠ ੾ Γ ସ ͑ ΢ Ο δΣ ο

    τ Λ ௥ Ճ
  21. ݴ ޠ ੾ Γ ସ ͑ Ϙ λ ϯ ͕

    ද ࣔ ͞ Ε Δ
  22. Ϋ Ϧ ο Ϋ Ͱ ݴ ޠ ੾ Γ ସ

    ͑
  23. ϋ ϯζ Φ ϯ Ξ δΣ ϯ μ • WordPressͷηοτΞοϓ

    • ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ
  24. “ W P R E S T A P I

    ” Λ ར ༻ ͠ · ͢ h t t p s : / / j a . w o rd p re s s . o rg / p l u g i n s / re s t - a p i /
  25. W P R E S T A P I ʁ

    • WordPressΛAPIԽ • JSON͔ͩΒॲཧ͠΍͍͢ • WP4.7ͰίΞ౷߹༧ఆ • ೔ຊޠυΩϡϝϯτ༗Γ http://ja.wp-api.org/
  26. Π ϯε τ ʔϧ & ༗ ޮ Խ h t

    t p s : / / j a . w o rd p re s s . o rg / p l u g i n s / b o g o /
  27. ύʔϚ Ϧ ϯ Ϋ ઃ ఆ Λ ʮ ج ຊ

    ʯ Ҏ ֎ ʹ ม ߋ
  28. Π ϯε τ ʔϧ & ༗ ޮ Խ h t

    t p s : / / j a . w o rd p re s s . o rg / p l u g i n s / b o g o /
  29. ɾ ӳ ޠ ͷ ه ࣄ h t t p

    : / / e x a m p l e . c o m / w p - j s o n / w p / v 2 / p o s t s ? f i l t e r [ l a n g ] = e n ɾ εϖ Π ϯ ޠ ͷ ه ࣄ h t t p : / / e x a m p l e . c o m / w p - j s o n / w p / v 2 / p o s t s ? f i l t e r [ l a n g ] = e s ɾ ೔ ຊ ޠ Ͱ o p e n d a t a ʹ ؔ ͢ Δ ه ࣄ h t t p : / / e x a m p l e . c o m / w p - j s o n / w p / v 2 / p o s t s ? f i l t e r [ l a n g ] = j p & f i l t e r [ s ] = o p e n d a t a
  30. J a v a S c r i p t

    Ͱ Ξ ϓ Ϧ Λ ࡞ ͬͯ Έ Α ͏ h t t p : / / b i t . l y / 2 9 t v 3 z y
  31. ʮ F o r k ʯ Λ Ϋ Ϧ ο

    Ϋ
  32. ʮ S a v e a s A n o

    n y m o u s ʯ Λ બ ୒
  33. ه ࣄ Ұ ཡ Λ ද ࣔ ͢ Δ λ

    ά ʢ R e a c t ʣ
  34. ͍ Ζ ͍ Ζ ͳ ৘ ใ Λ ද ࣔ

    ͞ ͤ ͯ Έ Α ͏
  35. <Article url=“http://wp-kyoto.net/“ title="೔ຊޠهࣄҰཡ" lang=‘ja" search="wordpress" per_page="1" /> αΠτͷURLʢඞਢʣ هࣄҰཡͷλΠτϧʢඞਢʣ ݴޠʢ೚ҙʣ

    ݕࡧΩʔϫʔυʢ೚ҙʣ දࣔ݅਺ʢ೚ҙʣ
  36. J a v a S c r i p t

    Ͱ Ξ ϓ Ϧ ͕ ࡞ Ε Δ ͱ ɾ ɾ ɾ
  37. ω Π ςΟ ϒ Ξ ϓ Ϧ ʹ ม ׵

    Ͱ ͖ Δ h t t p s : / / c o rd o v a . a p a c h e . o rg /
  38. ෳ ਺ ͷ ݴ ޠ Ͱ ؆ ୯ ʹ χϡ

    ʔε ΍ ͓ ஌ Β ͤ Λ ഑ ৴ ͠ ͨ ͍ ʂ → Wo rd P re s s + ଟ ݴ ޠ Խ ϓ ϥ άΠ ϯ
  39. ෳ ਺ ͷ ݴ ޠ Ͱ ؆ ୯ ʹ χϡ

    ʔε ΍ ͓ ஌ Β ͤ Λ Ξ ϓ Ϧ ʹ ഑ ৴ ͠ ͨ ͍ ʂ → Wo rd P re s s + ଟ ݴ ޠ Խ ϓ ϥ άΠ ϯ ɹ + W P R E S T A P I & C o rd o v a
  40. T H A N K S ! • WordPressͷηοτΞοϓ •

    ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ