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

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

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

WordCamp Kansai 2016 ハンズオン資料

Hidetaka Okamoto

July 09, 2016
Tweet

More Decks by Hidetaka Okamoto

Other Decks in Technology

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. 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
  6. ϋ ϯζ Φ ϯ Ξ δΣ ϯ μ • WordPressͷηοτΞοϓ

    • ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ
  7. “ 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 /
  8. B O G O Λ ࢖ ͏ ཧ ༝ •

    γϯϓϧ • ࡞ऀ͕೔ຊਓ • WP APIͰهࣄ͕औΕΔ
  9. Π ϯε τ ʔϧ & ༗ ޮ Խ 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 /
  10. ϋ ϯζ Φ ϯ Ξ δΣ ϯ μ • WordPressͷηοτΞοϓ

    • ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ
  11. “ A d d { L a n g }

    t r a n s l a t i o n ” Λ Ϋ Ϧ ο Ϋ
  12. ϋ ϯζ Φ ϯ Ξ δΣ ϯ μ • WordPressͷηοτΞοϓ

    • ଟݴޠԽϓϥάΠϯͷ४උ • هࣄͷଟݴޠԽ • WP APIͰ֎෦͔Βऔಘ
  13. “ 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 /
  14. W P R E S T A P I ʁ

    • WordPressΛAPIԽ • JSON͔ͩΒॲཧ͠΍͍͢ • WP4.7ͰίΞ౷߹༧ఆ • ೔ຊޠυΩϡϝϯτ༗Γ http://ja.wp-api.org/
  15. Π ϯε τ ʔϧ & ༗ ޮ Խ 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 /
  16. Π ϯε τ ʔϧ & ༗ ޮ Խ 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 /
  17. ɾ ӳ ޠ ͷ ه ࣄ 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
  18. 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
  19. ʮ S a v e a s A n o

    n y m o u s ʯ Λ બ ୒
  20. J a v a S c r i p t

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

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

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

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

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