Slide 1

Slide 1 text

A m a z o n A l e x a + W P R E S T A P I = G U I - L e s s Wo rd P re s s A p p l i c a t i o n Wo rd c a m p S i n g a p o re 2 0 1 6

Slide 2

Slide 2 text

T O D AY TA L K S … • Change GUI -> GUI-LESS • How to use WordPress as GUI-LESS • Think about "GUI-Less WordPress"

Slide 3

Slide 3 text

H i d e t a k a O k a m o t o • Digitalcube developer • WordBench Kyoto Organizer • WordCamp Kansai 2016 stuff

Slide 4

Slide 4 text

a n d

Slide 5

Slide 5 text

To d a y M y A s s i s t a n t

Slide 6

Slide 6 text

p h o t o c re d i t : h t t p : / / w w w. f l i c k r. c o m / p h o t o s / 5 1 5 9 0 9 6 1 @ N 0 4 / 1 6 6 3 9 2 5 1 0 0 5 h t t p s : / / c re a t i v e c o m m o n s . o rg / l i c e n s e s / b y - n c - n d / 2 . 0 /

Slide 7

Slide 7 text

A M A Z O N A L E X A p h o t o c re d i t : h t t p : / / w w w. f l i c k r. c o m / p h o t o s / 5 1 5 9 0 9 6 1 @ N 0 4 / 1 6 6 3 9 2 5 1 0 0 5 h t t p s : / / c re a t i v e c o m m o n s . o rg / l i c e n s e s / b y - n c - n d / 2 . 0 /

Slide 8

Slide 8 text

A M A Z O N A L E X A I S V O I C E S E R V I C E p h o t o c re d i t : h t t p : / / w w w. f l i c k r. c o m / p h o t o s / 5 1 5 9 0 9 6 1 @ N 0 4 / 1 6 6 3 9 2 5 1 0 0 5 h t t p s : / / c re a t i v e c o m m o n s . o rg / l i c e n s e s / b y - n c - n d / 2 . 0 /

Slide 9

Slide 9 text

p h o t o c re d i t : h t t p : / / w w w. f l i c k r. c o m / p h o t o s / 5 1 5 9 0 9 6 1 @ N 0 4 / 1 6 6 3 9 2 5 1 0 0 5 h t t p s : / / c re a t i v e c o m m o n s . o rg / l i c e n s e s / b y - n c - n d / 2 . 0 / A L E X A , H E L L O !

Slide 10

Slide 10 text

C h a n g e G U I = > G U I - L E S S

Slide 11

Slide 11 text

http://www.nointerface.com/book/

Slide 12

Slide 12 text

G U I N E E D T O D O M A N Y TA S K S

Slide 13

Slide 13 text

G U I v s G U I - L E S S ( S i r i ) “ H o w t o c o n t a c t y o u r f r i e n d ? ” 1. Open Your Phone 2. Disable sleep mode 3. Open Message App 4. Search Friend Name 5. Select talk room 6. Input Message 7. Check Message 8. Send 1. Open Your Phone 2. Long Tap Home Button 3. Say “Call John”

Slide 14

Slide 14 text

I n t e r f a c e e x c e p t G U I • Touch Interface • Voice Interface • Perceptual User Interface • Command Line Interface

Slide 15

Slide 15 text

I n t e r f a c e e x c e p t G U I • Touch Interface ( SmartPhone / Tablet) • Voice Interface ( Siri / Alexa / Cloud Speech API ) • Perceptual User Interface( Kinect ) • Command Line Interface( Terminal )

Slide 16

Slide 16 text

H o w t o u s e Wo rd P re s s a s G U I - L E S S

Slide 17

Slide 17 text

F o r E x a m p l e

Slide 18

Slide 18 text

https://amimoto-ami.com/amimoto-ninja/

Slide 19

Slide 19 text

p h o t o c re d i t : h t t p : / / w w w. f l i c k r. c o m / p h o t o s / 5 1 5 9 0 9 6 1 @ N 0 4 / 1 6 6 3 9 2 5 1 0 0 5 h t t p s : / / c re a t i v e c o m m o n s . o rg / l i c e n s e s / b y - n c - n d / 2 . 0 / W h a t i s Wo rd P re s s ?

Slide 20

Slide 20 text

p h o t o c re d i t : h t t p : / / w w w. f l i c k r. c o m / p h o t o s / 5 1 5 9 0 9 6 1 @ N 0 4 / 1 6 6 3 9 2 5 1 0 0 5 h t t p s : / / c re a t i v e c o m m o n s . o rg / l i c e n s e s / b y - n c - n d / 2 . 0 / Wo rd P re s s i s …

Slide 21

Slide 21 text

h t t p s : / / w w w. f a c e b o o k . c o m / p h o t o . p h p ? f b i d = 1 3 3 9 2 2 0 1 5 9 4 4 0 4 4 5 & s e t = p b . 1 0 0 0 0 0 5 7 4 2 1 9 0 7 9 . - 2 2 0 7 5 2 0 0 0 0 . 1 4 7 2 6 4 8 6 7 9 . & t y p e = 3 & t h e a t e r

Slide 22

Slide 22 text

A l e x a c a l l s W P R E S T A P I

Slide 23

Slide 23 text

A u d i o C a p t u re A u d i o P l a y b a c k Yo u r C o d e W P R E S T A P I ( P O S T C o m m e n t ) M y i m p re s s i o n i s … . T h a n k y o u !

Slide 24

Slide 24 text

S h o w v i s i t e r ’s c o m m e n t ( U s i n g R e a c t . j s )

Slide 25

Slide 25 text

H o w t o c re a t e ?

Slide 26

Slide 26 text

A l e x a n e e d s • AWS Account • amazon.com Account • Alexa device ( Echo / Tap etc… ) p h o t o c re d i t : h t t p : / / w w w. f l i c k r. c o m / p h o t o s / 5 1 5 9 0 9 6 1 @ N 0 4 / 1 6 6 3 9 2 5 1 0 0 5 h t t p s : / / c re a t i v e c o m m o n s . o rg / l i c e n s e s / b y - n c - n d / 2 . 0 /

Slide 27

Slide 27 text

C re a t e A l e x a B a c k e n d

Slide 28

Slide 28 text

A l e x a r u n s y o u r o w n c o d e u s i n g b y A W S L a m b d a A u d i o C a p t u re A u d i o P l a y b a c k Yo u r C o d e ( AW S L a m b d a ) W h a t i s Wo rd p re s s ? Wo rd P re s s i s …

Slide 29

Slide 29 text

A W S L a m b d a i s w e b s e r v i c e J u s t r u n y o u r o w n c o d e

Slide 30

Slide 30 text

Wr i t e s o m e c o d e t o c o n n e c t W P A P I

Slide 31

Slide 31 text

C a l l W P A P I b y P y t h o n import urllib import urllib2 import json def get_post( query ): api_url = ‘http://example.com/wp-json/wp/v2/posts?' + query req = urllib2.Request(api_url) result = urllib2.urlopen(req) return json.loads(result.read())

Slide 32

Slide 32 text

S e t u p A l e x a S k i l l

Slide 33

Slide 33 text

A c c e s s D e v c o n s o l e

Slide 34

Slide 34 text

C h o o s e “ A l e x a S k i l l s K i t ”

Slide 35

Slide 35 text

C re a t e I n t e r a c t i o n M o d e l

Slide 36

Slide 36 text

C o n n e c t y o u r A W S L a m b d a

Slide 37

Slide 37 text

E n a b l e “ t e s t t h i s s k i l l ”

Slide 38

Slide 38 text

Yo u c a n u s e y o u r o w n A l e x a d e v i c e

Slide 39

Slide 39 text

p h o t o c re d i t : h t t p : / / w w w. f l i c k r. c o m / p h o t o s / 5 1 5 9 0 9 6 1 @ N 0 4 / 1 6 6 3 9 2 5 1 0 0 5 h t t p s : / / c re a t i v e c o m m o n s . o rg / l i c e n s e s / b y - n c - n d / 2 . 0 / A l e x a , t a l k Wo rd C a m p S i n g a p o re ?

Slide 40

Slide 40 text

No content

Slide 41

Slide 41 text

T h i n k “ G U I - L e s s ” Wo rd P re s s

Slide 42

Slide 42 text

W P R E S T A P I C h a n g e s Wo rd P re s s D e v e l o p m e n t

Slide 43

Slide 43 text

We c a n S u p p o r t M a n y t y p e o f I n t e r f a c e b y W P R E S T A P I

Slide 44

Slide 44 text

C a l l W P R E S T A P I a n d R u n s o m e c o d e W P R E S T A P I U s e r d o s o m e t h i n g Wo rd P re s s i s … G e t u s e r s a c t i o n f ro m s o m e A P I C re a t e re s p o n s e u s i n g s o m e A P I

Slide 45

Slide 45 text

W E C A N U S E M A N Y C L I E N T • backbone.js • node.js • AngularJS • Ruby • Go

Slide 46

Slide 46 text

E n j o y W P R E S T A P I a n d E n j o y G U I - L E S S Wo rd P re s s